Commit 219a2c20 authored by Tanken's avatar Tanken

Fixed OFFSET 0 which was interpreted as null and then ignored in SQL-query, causing a SQL-exception

parent f3d21a75
......@@ -369,7 +369,7 @@ class Doctrine_Query extends Doctrine_Hydrate implements Countable {
break;
case 'limit':
case 'offset':
if($args[0] == null)
if($args[0] === null)
$args[0] = false;
$this->parts[$name] = $args[0];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment