Undefined variable in Simple Pages 3.2

FYI, I’m getting this error when I choose Simple Pages from the left admin menu:

 Undefined variable: active in C:\xampp\htdocs\omeka\plugins\SimplePages\views\admin\index\browse.php on line 12

It looks like $active is only getting declared if the view arg is set on the query string, but it is used unconditionally in the <li> tag.

if (isset($_GET['view'])) {
	$active = $_GET['view'];
}
...
    <li class="<?php if ($active != 'hierarchy') {echo 'current';} ?>">

Thanks for the report.

We’ve fixed this in Simple Pages, but I’m not sure when there will be a release for it.

This topic was automatically closed after 250 days. New replies are no longer allowed.