diff --git a/classes/db/DBMysql.class.php b/classes/db/DBMysql.class.php index fae3c63bd..fd331f5fa 100644 --- a/classes/db/DBMysql.class.php +++ b/classes/db/DBMysql.class.php @@ -501,8 +501,8 @@ foreach($output->order as $key => $val) { $col = $val[0]; if(!in_array($col, array('list_order','update_order'))) continue; - if($condition) $condition .= sprintf(' and %s < 0 ', $col); - else $condition = sprintf(' where %s < 0 ', $col); + if($condition) $condition .= sprintf(' and %s < 2100000000 ', $col); + else $condition = sprintf(' where %s < 2100000000 ', $col); } } @@ -560,8 +560,8 @@ foreach($output->order as $key => $val) { $col = $val[0]; if(!in_array($col, array('list_order','update_order'))) continue; - if($condition) $condition .= sprintf(' and %s < 0 ', $col); - else $condition = sprintf(' where %s < 0 ', $col); + if($condition) $condition .= sprintf(' and %s < 2100000000 ', $col); + else $condition = sprintf(' where %s < 2100000000 ', $col); } } diff --git a/classes/db/DBMysql_innodb.class.php b/classes/db/DBMysql_innodb.class.php index 2d0e4440f..634b76fbd 100644 --- a/classes/db/DBMysql_innodb.class.php +++ b/classes/db/DBMysql_innodb.class.php @@ -510,8 +510,8 @@ foreach($output->order as $key => $val) { $col = $val[0]; if(!in_array($col, array('list_order','update_order'))) continue; - if($condition) $condition .= sprintf(' and %s < 0 ', $col); - else $condition = sprintf(' where %s < 0 ', $col); + if($condition) $condition .= sprintf(' and %s < 2100000000 ', $col); + else $condition = sprintf(' where %s < 2100000000 ', $col); } } @@ -569,8 +569,8 @@ foreach($output->order as $key => $val) { $col = $val[0]; if(!in_array($col, array('list_order','update_order'))) continue; - if($condition) $condition .= sprintf(' and %s < 0 ', $col); - else $condition = sprintf(' where %s < 0 ', $col); + if($condition) $condition .= sprintf(' and %s < 2100000000 ', $col); + else $condition = sprintf(' where %s < 2100000000 ', $col); } } diff --git a/classes/db/DBSqlite2.class.php b/classes/db/DBSqlite2.class.php index e5085e904..f3f1be23f 100644 --- a/classes/db/DBSqlite2.class.php +++ b/classes/db/DBSqlite2.class.php @@ -527,8 +527,8 @@ foreach($output->order as $key => $val) { $col = $val[0]; if(!in_array($col, array('list_order','update_order'))) continue; - if($condition) $condition .= sprintf(' and %s < 0 ', $col); - else $condition = sprintf(' where %s < 0 ', $col); + if($condition) $condition .= sprintf(' and %s < 2100000000 ', $col); + else $condition = sprintf(' where %s < 2100000000 ', $col); } } @@ -586,8 +586,8 @@ foreach($output->order as $key => $val) { $col = $val[0]; if(!in_array($col, array('list_order','update_order'))) continue; - if($condition) $condition .= sprintf(' and %s < 0 ', $col); - else $condition = sprintf(' where %s < 0 ', $col); + if($condition) $condition .= sprintf(' and %s < 2100000000 ', $col); + else $condition = sprintf(' where %s < 2100000000 ', $col); } } diff --git a/classes/db/DBSqlite3_pdo.class.php b/classes/db/DBSqlite3_pdo.class.php index e8c7b753b..75f889a2b 100644 --- a/classes/db/DBSqlite3_pdo.class.php +++ b/classes/db/DBSqlite3_pdo.class.php @@ -570,8 +570,8 @@ foreach($output->order as $key => $val) { $col = $val[0]; if(!in_array($col, array('list_order','update_order'))) continue; - if($condition) $condition .= sprintf(' and %s < 0 ', $col); - else $condition = sprintf(' where %s < 0 ', $col); + if($condition) $condition .= sprintf(' and %s < 2100000000 ', $col); + else $condition = sprintf(' where %s < 2100000000 ', $col); } } @@ -629,8 +629,8 @@ foreach($output->order as $key => $val) { $col = $val[0]; if(!in_array($col, array('list_order','update_order'))) continue; - if($condition) $condition .= sprintf(' and %s < 0 ', $col); - else $condition = sprintf(' where %s < 0 ', $col); + if($condition) $condition .= sprintf(' and %s < 2100000000 ', $col); + else $condition = sprintf(' where %s < 2100000000 ', $col); } }