Fix issue with PHP7.2 (#2190)

This commit is contained in:
jekkos
2018-11-03 20:19:19 +01:00
parent 145e0b7783
commit afbb06eaad

View File

@@ -127,7 +127,7 @@ class Attribute extends CI_Model
public function get_values_by_definitions($definition_ids)
{
if (count($definition_ids) > 0)
if(count($definition_ids ? : []))
{
$this->db->from('attribute_definitions');