cvs: pearweb /include pear-category.php

From: Date: Mon, 01 Apr 2002 17:20:59 +0000
Subject: cvs: pearweb /include pear-category.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-2949@lists.php.net to get a copy of this message
ssb Mon Apr 1 12:20:59 2002 EDT Modified files: /pearweb/include pear-category.php Log: * $dbh is always defined Index: pearweb/include/pear-category.php diff -u pearweb/include/pear-category.php:1.6 pearweb/include/pear-category.php:1.7 --- pearweb/include/pear-category.php:1.6 Sat Dec 29 06:35:07 2001 +++ pearweb/include/pear-category.php Mon Apr 1 12:20:59 2002 @@ -24,11 +24,6 @@ */ function initialize_categories_menu () { global $dbh, $tree, $menu; - if (empty($dbh)) { - include_once 'DB.php'; - PEAR::setErrorHandling(PEAR_ERROR_DIE); - $dbh = DB::connect('mysql://pear:pear@localhost/pear'); - } $sth = $dbh->query('SELECT id, name, parent, cat_left, cat_right FROM categories ORDER BY name');

« previous php.pear.cvs (#2949) next »