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(); $result = $query->result();
$num = empty($result)? 0: $num = empty($result)? 0: (isset($result[0]->COUNT)? $result[0]->COUNT: $result[0]->count);
isset($result[0]->COUNT)? $result[0]->COUNT: $result[0]->count;
$this->db->trans_commit(); $this->db->trans_commit();
return $num; return $num;

View File

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

View File

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