Skip to content

Commit

Permalink
Merge pull request #8446 from hregis/develop_dict
Browse files Browse the repository at this point in the history
Fix: Parameter must be an array or an object that implements Countable
  • Loading branch information
eldy committed Mar 24, 2018
2 parents 630ed04 + 47ea5a8 commit 0a2db0d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions htdocs/ticketsup/class/ticketsup.class.php
Expand Up @@ -1038,7 +1038,7 @@ public function loadCacheTypesTickets()
{
global $langs;

if (count($this->cache_types_tickets)) {
if (! empty($this->cache_types_tickets) && count($this->cache_types_tickets)) {
return 0;
}
// Cache deja charge
Expand Down Expand Up @@ -1078,7 +1078,7 @@ public function loadCacheCategoriesTickets()
{
global $langs;

if (count($this->cache_category_tickets)) {
if (! empty($this->cache_category_ticket) && count($this->cache_category_tickets)) {
return 0;
}
// Cache deja charge
Expand Down Expand Up @@ -1118,7 +1118,7 @@ public function loadCacheSeveritiesTickets()
{
global $langs;

if (count($this->cache_severity_tickets)) {
if (! empty($this->cache_severity_tickets) && count($this->cache_severity_tickets)) {
return 0;
}
// Cache deja charge
Expand Down
2 changes: 1 addition & 1 deletion htdocs/ticketsup/index.php
Expand Up @@ -215,7 +215,7 @@
print '<tr><td>';

// don't display graph if no series
if (count($dataseries) >1) {
if (! empty($dataseries) && count($dataseries) > 1) {
$data = array();
foreach ($dataseries as $key => $value) {
$data[] = array($value['label'], $value['data']);
Expand Down

0 comments on commit 0a2db0d

Please sign in to comment.