Commit d31eb70a authored by Clément Démoulins's avatar Clément Démoulins
Browse files

Check if a variable is set before using it.

parent 52468f58
......@@ -56,7 +56,7 @@ if ($session->has_current_demo())
$script = $conf->get_script_name($demoId);
$border = 0;
if ($selected == $bname)
if (isset($selected) && $selected == $bname)
$border = "3";
$output .= "<td class=\"ui-state-default\" id=\"$example_id\"><img src='examples/$dir/thumbs/$bname.png' border='$border'></td>";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment