@@ -1882,7 +1882,7 @@ public function getLastExecutionResult($args)
18821882 $ targetID ;
18831883 $ resultInfo [0 ] = $ this ->dbObj ->fetchFirstRow ($ sql );
18841884
1885- if ($ options ->getBugs ) {
1885+ if ($ options ->getBugs !== 0 ) {
18861886 $ resultInfo [0 ]['bugs ' ] = array ();
18871887 $ sql = " SELECT DISTINCT bug_id FROM {$ this ->tables ['execution_bugs ' ]} " .
18881888 " WHERE execution_id = " . $ targetID ;
@@ -2029,7 +2029,7 @@ public function getAllExecutionsResults($args)
20292029 $ sql = "SELECT * FROM {$ this ->tables ['executions ' ]} WHERE id= " .
20302030 $ tcExecId ;
20312031 $ resultInfo [$ tcExecId ] = $ this ->dbObj ->fetchFirstRow ($ sql );
2032- if ($ options ->getBugs ) {
2032+ if ($ options ->getBugs !== 0 ) {
20332033 $ resultInfo [$ tcExecId ]['bugs ' ] = array ();
20342034 $ sql = " SELECT DISTINCT bug_id FROM
20352035 {$ this ->tables ['execution_bugs ' ]}
@@ -5480,15 +5480,15 @@ protected function checkPlatformIdentity($tplanID, $platformInfo = null,
54805480 $ messagePrefix );
54815481 $ status = $ name_exists | $ id_exists ;
54825482
5483- if (! $ status ) {
5483+ if ($ status === 0 ) {
54845484 $ pname = self ::$ platformNameParamName . ' OR ' .
54855485 self ::$ platformIDParamName ;
54865486 $ msg = $ messagePrefix .
54875487 sprintf (MISSING_REQUIRED_PARAMETER_STR , $ pname );
54885488 $ this ->errors [] = new IXR_Error (MISSING_REQUIRED_PARAMETER , $ msg );
54895489 }
54905490
5491- if ($ status ) {
5491+ if ($ status !== 0 ) {
54925492 // get test plan name is useful for error messages
54935493 $ tplanInfo = $ this ->tplanMgr ->get_by_id ($ tplanID );
54945494 if (is_null ($ platformInfo )) {
@@ -9663,7 +9663,7 @@ public function getExecutionSet($args)
96639663 $ sql .= ") " ;
96649664
96659665 $ sql .= " ORDER BY id " ;
9666- $ sql .= ($ opt ->getOrderDescending ) ? " DESC " : " ASC " ;
9666+ $ sql .= ($ opt ->getOrderDescending !== 0 ) ? " DESC " : " ASC " ;
96679667
96689668 $ rs = $ this ->dbObj ->fetchRowsIntoMap ($ sql , 'id ' );
96699669 if (is_null ($ rs )) {
0 commit comments