Condition crashes site due to lack of id reference
-
Site crashes, please see below for details.
File Path: /plugin/if-menu/if-menu.php
//Notice: Undefined index: id in /plugins/if-menu/if-menu.php on line 46
Line #46: $c2[$condition[‘id’]] = $condition;within function get_conditions()
—————————————————–
if ($for_testing) {
$c2 = array();
foreach ($conditions as $condition) {
$c2[$condition[‘id’]] = $condition;
$c2[$condition[‘name’]] = $condition;
if (isset($condition[‘alias’])) {
$c2[$condition[‘alias’]] = $condition;
}
}
$conditions = $c2;
}
—————————————————–
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Condition crashes site due to lack of id reference’ is closed to new replies.