X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=blobdiff_plain;f=maintenance%2FpopulateParentId.php;h=2ef58b7c6154910b1160ca2512396511bbac04cd;hb=c23c2b1c53824311bed3987d07bc0653aee6450e;hp=99c2b2301429baeb815df090a9e4988d2dcb22b9;hpb=dac20d0ffab5a850563d3fb02331a927e42a2bd9;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/populateParentId.php b/maintenance/populateParentId.php index 99c2b23014..2ef58b7c61 100644 --- a/maintenance/populateParentId.php +++ b/maintenance/populateParentId.php @@ -54,8 +54,8 @@ class PopulateParentId extends LoggedUpdateMaintenance { return false; } $this->output( "Populating rev_parent_id column\n" ); - $start = $db->selectField( 'revision', 'MIN(rev_id)', false, __FUNCTION__ ); - $end = $db->selectField( 'revision', 'MAX(rev_id)', false, __FUNCTION__ ); + $start = $db->selectField( 'revision', 'MIN(rev_id)', '', __FUNCTION__ ); + $end = $db->selectField( 'revision', 'MAX(rev_id)', '', __FUNCTION__ ); if ( is_null( $start ) || is_null( $end ) ) { $this->output( "...revision table seems to be empty, nothing to do.\n" ); @@ -127,5 +127,5 @@ class PopulateParentId extends LoggedUpdateMaintenance { } } -$maintClass = "PopulateParentId"; +$maintClass = PopulateParentId::class; require_once RUN_MAINTENANCE_IF_MAIN;