categorytemplates 0.35.2: Fix PHP 7 compat
Unused code tried to count on uninitialized array
This commit is contained in:
parent
f62a5bddcc
commit
7538b9464d
|
@ -1,3 +1,7 @@
|
|||
0.35.2:
|
||||
----
|
||||
Don't die on PHP 7 versions
|
||||
|
||||
0.35:
|
||||
----
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ class serendipity_event_categorytemplates extends serendipity_event
|
|||
$propbag->add('description', PLUGIN_CATEGORYTEMPLATES_DESC);
|
||||
$propbag->add('stackable', false);
|
||||
$propbag->add('author', 'Garvin Hicking, Judebert');
|
||||
$propbag->add('version', '0.35.1');
|
||||
$propbag->add('version', '0.35.2');
|
||||
$propbag->add('requirements', array(
|
||||
'serendipity' => '0.9',
|
||||
'php' => '4.1.0'
|
||||
|
@ -788,15 +788,6 @@ class serendipity_event_categorytemplates extends serendipity_event
|
|||
$eventData['joins'] .= $cond;
|
||||
}
|
||||
}
|
||||
// Havings
|
||||
if (count($havings) > 0) {
|
||||
$cond = implode(' AND ', $havings);
|
||||
if (empty($eventData['having'])) {
|
||||
$eventData['having'] = "HAVING $cond ";
|
||||
} else {
|
||||
$eventData['having'] .= " AND $cond ";
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue