From: Aaron Schulz Date: Sat, 6 Jun 2009 00:39:31 +0000 (+0000) Subject: Don't kill whole update process if no log rows to update (fixes r50609) X-Git-Tag: 1.31.0-rc.0~41486 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22suivi_revisions%22%29%20.%20%22?a=commitdiff_plain;h=be6595c095265e3209f095d021ddb5cb68db9e4a;p=lhc%2Fweb%2Fwiklou.git Don't kill whole update process if no log rows to update (fixes r50609) --- diff --git a/maintenance/populateLogSearch.inc b/maintenance/populateLogSearch.inc index 0cfa387f7f..d678191d42 100644 --- a/maintenance/populateLogSearch.inc +++ b/maintenance/populateLogSearch.inc @@ -13,7 +13,8 @@ define( 'LOG_SEARCH_BATCH_SIZE', 100 ); function migrate_log_params( $db ) { $start = $db->selectField( 'logging', 'MIN(log_id)', false, __FUNCTION__ ); if( !$start ) { - die("Nothing to do.\n"); + echo "Nothing to do.\n"; + return true; } $end = $db->selectField( 'logging', 'MAX(log_id)', false, __FUNCTION__ );