From 5db02f8d8ced2403e69a4901a0a15386d19a13b5 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Wed, 15 Oct 2008 16:08:59 +0000 Subject: phplint cleanup --- it_dbi.class | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'it_dbi.class') diff --git a/it_dbi.class b/it_dbi.class index c85b43f..6ce5808 100644 --- a/it_dbi.class +++ b/it_dbi.class @@ -146,7 +146,7 @@ function createclass($p) $interface = function_exists("interface_exists") && interface_exists("Iterator", false) ? "implements Iterator" : ""; $code = "class $classname extends it_dbi $interface { - function $classname(/* $query ... */) + function $classname(/* \$query ... */) { \$args = func_get_args(); \$query = array_shift(\$args); # Preserve type (scalar/array) in single parameter case @@ -332,7 +332,7 @@ function _fatal($text) { $text = get_class($this).'::'.$text; - if ($this->_link && ($errno = mysql_errno($this->_link)) && ($errstr = mysql_error($this->_link))) + if ($this->_link && ($errstr = mysql_error($this->_link))) $text = "\"$errstr\" in $text"; if ($this->_link && ($res = @mysql_fetch_row(mysql_query('select database()', $this->_link)))) # dont create extra errs @@ -357,7 +357,7 @@ function _read_post_process() * This is a stub-function that can be overloaded. * @param $tags Reference to update/create tags, can be modified as needed */ -function _write_pre_process(&$tags) +function _write_pre_process(/* &$tags */) { } -- cgit v1.2.3