Make sure a job is logged as OK if the status is NULL for sanity.
authorAaron Schulz <aschulz@wikimedia.org>
Thu, 4 Apr 2013 17:50:26 +0000 (10:50 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Thu, 4 Apr 2013 17:50:26 +0000 (10:50 -0700)
Change-Id: Ib1e194fc6d655c48b72f0cfae30a9ec78e54419f

maintenance/runJobs.php

index abe8335..66d8028 100644 (file)
@@ -108,7 +108,7 @@ class RunJobs extends Maintenance {
                                        $group->ack( $job ); // done
                                }
 
-                               if ( !$status ) {
+                               if ( $status === false ) {
                                        $this->runJobsLog( $job->toString() . " t=$timeMs error={$error}" );
                                } else {
                                        $this->runJobsLog( $job->toString() . " t=$timeMs good" );