cvs: pearweb /include pear-format-html.php
| From: | Helgi �ormar �orbj�rnsson | Date: | Sun, 09 Mar 2008 19:32:21 +0000 |
| Subject: | cvs: pearweb /include pear-format-html.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-7322@lists.php.net to get a copy of this message | ||
dufuz Sun Mar 9 19:32:21 2008 UTC
Modified files:
/pearweb/include pear-format-html.php
Log:
remove chm upload from the admin menu
better query
http://cvs.php.net/viewvc.cgi/pearweb/include/pear-format-html.php?r1=1.262&r2=1.263&diff_format=u
Index: pearweb/include/pear-format-html.php
diff -u pearweb/include/pear-format-html.php:1.262 pearweb/include/pear-format-html.php:1.263
--- pearweb/include/pear-format-html.php:1.262 Sat Mar 8 14:37:32 2008
+++ pearweb/include/pear-format-html.php Sun Mar 9 19:32:21 2008
@@ -15,7 +15,7 @@
+----------------------------------------------------------------------+
| Authors: |
+----------------------------------------------------------------------+
- $Id: pear-format-html.php,v 1.262 2008/03/08 14:37:32 dufuz Exp $
+ $Id: pear-format-html.php,v 1.263 2008/03/09 19:32:21 dufuz Exp $
*/
PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, 'error_handler');
@@ -379,7 +379,6 @@
$sub['/admin/']['/admin/category-manager.php'] = 'Manage
categories';
$sub['/admin/']['/tags/admin.php'] = 'Manage
tags';
$sub['/admin/']['/admin/karma.php'] = 'Karma';
- $sub['/admin/']['/admin/chm-upload.php'] = 'CHM
upload';
}
// Orders the main items in the proper order according to $main_order
@@ -649,8 +648,8 @@
{
global $dbh;
- $query = "SELECT name, wishlist FROM users WHERE handle = '" . $handle .
"'";
- $row = $dbh->getRow($query, DB_FETCHMODE_ASSOC);
+ $query = 'SELECT name, wishlist FROM users WHERE handle = ?';
+ $row = $dbh->getRow($query, DB_FETCHMODE_ASSOC, array($handle));
if (!is_array($row)) {
return false;
}