From: <mo...@us...> - 2005-02-19 17:57:34
|
Update of /cvsroot/tikiwiki/tiki/lib/wiki-plugins In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13405/lib/wiki-plugins Modified Files: Tag: BRANCH-1-9 wikiplugin_miniquiz.php Log Message: added a small test on a var Index: wikiplugin_miniquiz.php =================================================================== RCS file: /cvsroot/tikiwiki/tiki/lib/wiki-plugins/wikiplugin_miniquiz.php,v retrieving revision 1.2.2.2 retrieving revision 1.2.2.3 diff -u -d -r1.2.2.2 -r1.2.2.3 --- wikiplugin_miniquiz.php 3 Jan 2005 19:28:28 -0000 1.2.2.2 +++ wikiplugin_miniquiz.php 19 Feb 2005 17:57:26 -0000 1.2.2.3 @@ -105,7 +105,7 @@ $back.= '.q label:hover { background-color: #efe0d0; cursor: pointer; border: 1px solid black; }</style>'; foreach ($info as $id=>$item) { - if ($item['valid'] == 'y') { + if (isset($item['valid']) and $item['valid'] == 'y') { $back.= '<div class="titlebar">'.$item['question'].'</div>'; if ($item['qresult'] == 'y') { $back.= '<div class="wikitext" style="background-color:#ccffcc;">'; |