From 72ea6efe143760788b9446eb39fb3d3ecc2e42e2 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Tue, 19 Aug 2008 13:08:50 -0400 Subject: [PATCH] Updating favorite.php --- favorite.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/favorite.php b/favorite.php index aed29dd..6923cc2 100644 --- a/favorite.php +++ b/favorite.php @@ -82,7 +82,7 @@ if ($_REQUEST['do'] == 'manage') AND (!bug.hidden OR (bug.hidden AND bug.product IN (" . fetch_on_bits('canviewhidden') . "))" . (can_perform('canviewownhidden') ? " OR (bug.hidden AND bug.userid = " . bugdar::$userinfo['userid'] . " AND bug.product IN (" . fetch_on_bits('canviewownhidden') . "))" : "") . ") "); - if ($db->num_rows($favorites) < 1) + if ($favorites->size() < 1) { $message->error(T('You do not have any favorites in your list. To add a bug to your list, while viewing the report, click the [Add to Favorites] link next to the bug\'s ID.')); } @@ -98,7 +98,12 @@ if ($_REQUEST['do'] == 'manage') $bugs .= $sort->constructRow($bug); } - eval('$template->flush("' . $template->fetch('favorites') . '");'); + $tpl = new BSTemplate('favorites'); + $tpl->vars = array( + 'bugs' => $bugs, + 'headers' => $headers + ); + $tpl->evaluate()->flush(); } /*=====================================================================*\ -- 2.43.5