|
From: Benjamin C. <bc...@us...> - 2002-03-05 23:55:31
|
Update of /cvsroot/phpbt/phpbt/inc
In directory usw-pr-cvs1:/tmp/cvs-serv16144/inc
Modified Files:
functions.php
Log Message:
Fixed a bug with the OS select box
Index: functions.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/inc/functions.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- functions.php 5 Mar 2002 22:14:00 -0000 1.5
+++ functions.php 5 Mar 2002 23:55:28 -0000 1.6
@@ -112,7 +112,7 @@
}
break;
case 'os' :
- $q->query("select {$box}_id, {$box}_name, regex from ".TBL_OS." order by sort_order");
+ $q->query("select {$box}_id, {$box}_name, regex from ".TBL_OS." where sort_order > 0 order by sort_order");
while ($row = $q->grab()) {
if ($value == '' and isset($row['Regex']) and
preg_match($row['Regex'],$GLOBALS['HTTP_USER_AGENT'])) $sel = ' selected';
|