From: Davide Franco Date: Tue, 12 Jul 2011 05:10:53 +0000 (+0200) Subject: bacula-web: Fixed typo in sql query and variable name X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a555b683f3a0336bd2b7ad844d755b46071aa53a;p=bacula%2Fbacula bacula-web: Fixed typo in sql query and variable name --- diff --git a/gui/bacula-web/jobs.php b/gui/bacula-web/jobs.php index 3eeb9a575d..35bf7737e8 100644 --- a/gui/bacula-web/jobs.php +++ b/gui/bacula-web/jobs.php @@ -61,7 +61,7 @@ $query .= "WHERE Job.JobStatus = 'T' "; break; case STATUS_FAILED: - $query .= "WHERE Job.JobStatus = 'f', 'E' "; + $query .= "WHERE Job.JobStatus IN ('f', 'E') "; break; case STATUS_CANCELED: $query .= "WHERE Job.JobStatus = 'A' "; @@ -87,7 +87,7 @@ $jobsresult = $dbSql->db_link->query( $query ); if( PEAR::isError( $jobsresult ) ) { - $dbSql->TriggerDBError( "Unable to get last failed jobs from catalog", $jobresult ); + $dbSql->TriggerDBError( "Unable to get last failed jobs from catalog", $jobsresult ); }else { while( $job = $jobsresult->fetchRow( DB_FETCHMODE_ASSOC ) ) {