fixed wrong use of cascaded ternary operators in some files
This commit is contained in:
parent
70de259450
commit
eb26d37d9d
@ -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;
|
||||||
|
@ -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;
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user