|
From: Jirka P. <fi...@us...> - 2002-06-19 13:45:40
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv13463/phpbt
Modified Files:
index.php
Log Message:
Saved queries selectable by user and a bit of index localization.
Index: index.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/index.php,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- index.php 10 Jun 2002 12:52:35 -0000 1.33
+++ index.php 19 Jun 2002 13:45:35 -0000 1.34
@@ -138,9 +138,12 @@
' and b.project_id = p.project_id order by h.created_date desc', 0, 5)));
if ($u != 'nobody') {
- // Grab the saved queries if there are any
+ $pref = $db->GetOne('select saved_queries from '.TBL_USER_PREF." where user_id='".$u."'");
+ if ((isset($pref['saved_queries'])) && ($pref['saved_queries'])) {
+ // Grab the saved queries if there are any and user wants them
$t->assign('queries',
- $db->getAll("select * from ".TBL_SAVED_QUERY." where user_id = '$u'"));
+ $db->getAll("select * from ".TBL_SAVED_QUERY." where user_id = '$u'"));
+ }
}
$t->wrap('index.html', 'home');
|