diff options
Diffstat (limited to 'it_dbi.class')
-rw-r--r-- | it_dbi.class | 6 |
1 files changed, 3 insertions, 3 deletions
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 */) { } |