fixed wrong use of cascaded ternary operators in some files

This commit is contained in:
hyung-hwan 2019-02-06 10:48:39 +00:00
parent 70de259450
commit eb26d37d9d
3 changed files with 3 additions and 6 deletions

View File

@ -92,8 +92,7 @@ class IssueModel extends Model
}
$result = $query->result();
$num = empty($result)? 0:
isset($result[0]->COUNT)? $result[0]->COUNT: $result[0]->count;
$num = empty($result)? 0: (isset($result[0]->COUNT)? $result[0]->COUNT: $result[0]->count);
$this->db->trans_commit();
return $num;

View File

@ -33,8 +33,7 @@ class LogModel extends Model
$result = $query->result();
$num = empty($result)? 0:
isset($result[0]->COUNT)? $result[0]->COUNT: $result[0]->count;
$num = empty($result)? 0: (isset($result[0]->COUNT)? $result[0]->COUNT: $result[0]->count);
$this->db->trans_complete ();
if ($this->db->trans_status() === FALSE) return FALSE;

View File

@ -91,8 +91,7 @@ class ProjectModel extends Model
$result = $query->result();
$num = empty($result)? 0:
isset($result[0]->COUNT)? $result[0]->COUNT: $result[0]->count;
$num = empty($result)? 0: (isset($result[0]->COUNT)? $result[0]->COUNT: $result[0]->count);
$this->db->trans_complete ();
if ($this->db->trans_status() === FALSE) return FALSE;