Skip to content

Commit

Permalink
Fixed error where a PEAR Error was raised with without beeing an inst…
Browse files Browse the repository at this point in the history
…ance of PEAR.

git-svn-id: http://svn.php.net/repository/pear/packages/DB_NestedSet/trunk@127745 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information
Daniel Khan committed May 19, 2003
1 parent d57565e commit 2c97c6f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions NestedSet/Output.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
// $Id$
//

require_once 'PEAR.php';

// {{{ constants

define('NESEO_ERROR_NO_METHOD', 'E1000');
Expand Down Expand Up @@ -157,7 +159,7 @@ function _getOptions($group) {
* @access public
*/
function printTree() {
$this->raiseError("Method not available for this driver", NESEO_ERROR_NO_METHOD, PEAR_ERROR_TRIGGER, E_USER_ERROR);
PEAR::raiseError("Method not available for this driver", NESEO_ERROR_NO_METHOD, PEAR_ERROR_TRIGGER, E_USER_ERROR);
}

// }}}
Expand All @@ -170,7 +172,7 @@ function printTree() {
* @access public
*/
function printListbox() {
$this->raiseError("Method not available for this driver", NESEO_ERROR_NO_METHOD, PEAR_ERROR_TRIGGER, E_USER_ERROR);
PEAR::raiseError("Method not available for this driver", NESEO_ERROR_NO_METHOD, PEAR_ERROR_TRIGGER, E_USER_ERROR);
}

// }}}
Expand Down

0 comments on commit 2c97c6f

Please sign in to comment.