*
* @return int Number of rows
*/
- public static function affected_rows() {
+ public static function affectedRows() {
return self::$affected_rows;
}
}
// When there is no content for the "old" item table, this will count the fetched items
- $rows = DBA::affected_rows();
+ $rows = DBA::affectedRows();
while ($item = DBA::fetch($items)) {
logger('Deleting orphaned item activities - start', LOGGER_DEBUG);
$condition = ["NOT EXISTS (SELECT `iaid` FROM `item` WHERE `item`.`iaid` = `item-activity`.`id`)"];
DBA::delete('item-activity', $condition);
- logger('Orphaned item activities deleted: ' . DBA::affected_rows(), LOGGER_DEBUG);
+ logger('Orphaned item activities deleted: ' . DBA::affectedRows(), LOGGER_DEBUG);
logger('Deleting orphaned item content - start', LOGGER_DEBUG);
$condition = ["NOT EXISTS (SELECT `icid` FROM `item` WHERE `item`.`icid` = `item-content`.`id`)"];
DBA::delete('item-content', $condition);
- logger('Orphaned item content deleted: ' . DBA::affected_rows(), LOGGER_DEBUG);
+ logger('Orphaned item content deleted: ' . DBA::affectedRows(), LOGGER_DEBUG);
// make this optional as it could have a performance impact on large sites
if (intval(Config::get('system', 'optimize_items'))) {