|
From: <ir...@us...> - 2012-12-26 14:25:13
|
Revision: 10558
http://sourceforge.net/p/xoops/svn/10558
Author: irmtfan
Date: 2012-12-26 14:25:10 +0000 (Wed, 26 Dec 2012)
Log Message:
-----------
fix some notices in search.php
Modified Paths:
--------------
XoopsModules/newbb/branches/irmtfan/newbb/changelog-rev10109.txt
XoopsModules/newbb/branches/irmtfan/newbb/search.php
Modified: XoopsModules/newbb/branches/irmtfan/newbb/changelog-rev10109.txt
===================================================================
--- XoopsModules/newbb/branches/irmtfan/newbb/changelog-rev10109.txt 2012-12-26 13:26:21 UTC (rev 10557)
+++ XoopsModules/newbb/branches/irmtfan/newbb/changelog-rev10109.txt 2012-12-26 14:25:10 UTC (rev 10558)
@@ -7,6 +7,9 @@
2- improve: use addStylesheet instead of xoops_module_header to add toggle script because some themes are not standard
in newbb/header.php, newbb/footer.php
+3- bug fix: assign default values to variables to fix some notices
+in newbb/search.php
+
date 2012-12-25
===================================
1- bug fix: when vote in polls it should save user ip to db
Modified: XoopsModules/newbb/branches/irmtfan/newbb/search.php
===================================================================
--- XoopsModules/newbb/branches/irmtfan/newbb/search.php 2012-12-26 13:26:21 UTC (rev 10557)
+++ XoopsModules/newbb/branches/irmtfan/newbb/search.php 2012-12-26 14:25:10 UTC (rev 10558)
@@ -69,6 +69,9 @@
$selecthtml = isset($_GET['selecthtml']) ? ( !empty($_GET['selecthtml']) ? true : false ) : true;
$selectexclude = isset($_GET['selectexclude']) ? $_GET['selectexclude']: '';
$selectexclude = newbb_str2array($selectexclude);
+// irmtfan assign default values to variables
+$show_search = "post_text";
+$search_username = trim($uname);
if ($xoopsModuleConfig['wol_enabled']) {
$online_handler =& xoops_getmodulehandler('online', 'newbb');
@@ -115,7 +118,6 @@
}
$uname_required = false;
- $search_username = trim($uname);// irmtfan one line is enough
$next_search['uname'] = $search_username;
if ( !empty($search_username) ) {
$uname_required = true;
|