]> git.mjollnir.org Git - moodle.git/commitdiff
fixed notice and corrected the use of new s() and p()
authorskodak <skodak>
Wed, 26 Apr 2006 21:25:50 +0000 (21:25 +0000)
committerskodak <skodak>
Wed, 26 Apr 2006 21:25:50 +0000 (21:25 +0000)
admin/admin.html
admin/admin.php
admin/user.php

index b9913fc059b912ce7ded2d4c2c941392190ad466..8a2e575ada6089a7a76d5f6f4082a9754172dec8 100644 (file)
@@ -78,7 +78,7 @@
           ?>
          </select>
          <br />
-         <input type="text" name="searchtext" size="30" value="<?php echo $searchtext ?>" 
+         <input type="text" name="searchtext" size="30" value="<?php p($searchtext, true) ?>" 
                   onFocus ="document.adminform.add.disabled=true;
                             document.adminform.remove.disabled=true;
                             document.adminform.removeselect.selectedIndex=-1;
index 68568dff4809b8b9cb9810b751c2c595b089d68c..eca279916f9a6885962ef8d9818479410371016f 100644 (file)
@@ -77,7 +77,7 @@
     }
 
 /// Is there a current search?
-    $previoussearch = (!empty($frm->search) or ($frm->previoussearch == 1)) ;
+    $previoussearch = (!empty($frm->search) or (isset($frm->previoussearch) and $frm->previoussearch == 1)) ;
 
 /// Get all existing admins
     $admins = get_admins();
index 749d2358e0b374824450f1b39370f3278b639568..01814b820c76dd9a6073beb0f73feed073a471e2 100644 (file)
 
         echo "<table class=\"searchbox\" align=\"center\" cellpadding=\"10\"><tr><td>";
         echo "<form action=\"user.php\" method=\"get\">";
-        echo "<input type=\"text\" name=\"search\" value=\"".s($search)."\" size=\"20\" />";
+        echo "<input type=\"text\" name=\"search\" value=\"".s($search, true)."\" size=\"20\" />";
         echo "<input type=\"submit\" value=\"$strsearch\" />";
         if ($search) {
             echo "<input type=\"button\" onclick=\"document.location='user.php';\" value=\"$strshowallusers\" />";