Fixed sql_gen method for multiply extra where clauses.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Thu, 11 Nov 2010 09:58:06 +0000 (09:58 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Thu, 11 Nov 2010 09:58:06 +0000 (09:58 +0000)
includes/db_pager.inc

index 1629c47a000aeb7a9fd90a1033a1258a644afb83..64a79eda8e633cd4316147599bc1be0062fa0346 100644 (file)
@@ -260,7 +260,7 @@ class db_pager {
 
                if(count($this->extra_where)) {
                    $where .= ($where=='' ? '' : ' AND ')
-                               .implode( $this->extra_where, ' AND ');
+                               .implode(' AND ', $this->extra_where);
                }
                if ($where) $where = " WHERE ($where)";