* @return boolean Was the command executed successfully?
*/
public static function rollback() {
+ $ret = false;
+
switch (self::$driver) {
case 'pdo':
if (!self::$db->inTransaction()) {
// Split the SQL queries in chunks of 100 values
// We do the $i stuff here to make the code better readable
- $i = $counter[$key_table][$key_condition];
+ $i = isset($counter[$key_table][$key_condition]) ? $counter[$key_table][$key_condition] : 0;
if (isset($compacted[$key_table][$key_condition][$i]) && count($compacted[$key_table][$key_condition][$i]) > 100) {
++$i;
}