Select : Fixed Notice PHP
authorBenjamin Renard <brenard@easter-eggs.com>
Tue, 16 Nov 2010 18:23:34 +0000 (19:23 +0100)
committerBenjamin Renard <brenard@easter-eggs.com>
Tue, 16 Nov 2010 18:23:34 +0000 (19:23 +0100)
public_html/select.php

index ebbdbcf..fbcf5e4 100644 (file)
@@ -92,7 +92,7 @@ if(LSsession :: startLSsession()) {
         $GLOBALS['Smarty']->assign('LSview_actions',$LSview_actions);
         
         $LSsearch -> run();
-        $page=(int)$_REQUEST['page'];
+        $page=(isset($_REQUEST['page'])?(int)$_REQUEST['page']:0);
         $page = $LSsearch -> getPage($page);
         $GLOBALS['Smarty']->assign('page',$page);
         $GLOBALS['Smarty']->assign('LSsearch',$LSsearch);