fix: plugin page died because of non-countable object
This commit is contained in:
parent
10585fff80
commit
52838c0f7b
@ -466,7 +466,7 @@ if (isset($_GET['serendipity']['plugin_to_conf'])) {
|
||||
|
||||
$data['event_plugins'] = show_plugins(true);
|
||||
|
||||
if (count($serendipity['memSnaps']) > 0) {
|
||||
if ($serendipity['memSnaps'] && count($serendipity['memSnaps']) > 0) {
|
||||
$data['$memsnaps'] = $serendipity['memSnaps'];
|
||||
}
|
||||
$data['updateAllMsg'] = isset($serendipity['GET']['updateAllMsg']);
|
||||
|
Loading…
x
Reference in New Issue
Block a user