[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] phpgwapi/inc class.db.inc.php,1.13
From: |
ceb |
Subject: |
[Phpgroupware-cvs] phpgwapi/inc class.db.inc.php,1.13 |
Date: |
Thu, 24 Feb 2005 15:58:59 -0000 |
Update of phpgwapi/inc
Modified Files:
Branch: MAIN
class.db.inc.php lines: +38 -9
Log Message:
fixed undefined variable warings for
====================================================
Index: phpgwapi/inc/class.db.inc.php
diff -u phpgwapi/inc/class.db.inc.php:1.12 phpgwapi/inc/class.db.inc.php:1.13
--- phpgwapi/inc/class.db.inc.php:1.12 Tue Jan 11 14:42:53 2005
+++ phpgwapi/inc/class.db.inc.php Sun Jan 16 22:05:20 2005
@@ -36,7 +36,7 @@
var $Database;
var $User;
var $Password;
- var $debug = 0;
+ var $debug = False;
var $Halt_On_Error = 'yes'; // should be true or false
/**
@@ -51,6 +51,7 @@
echo "wtf: db";
$this->query($query);
}
+ $this->debug = $debug;
}
/**
@@ -88,7 +89,11 @@
*/
function connect($Database = '', $Host = '', $User = '',
$Password = '')
{
- if($debug) /* $GLOBALS['phpgw']->log */ echo
"depricated: connect";
+ if($this->debug)
+ {
+ // $GLOBALS['phpgw']->log
+ echo 'depricated: connect';
+ }
$this->Database = $Database != '' ? $Database :
$this->Database;
$this->Host = $Host != '' ? $Host : $this->Host;
$this->User = $User != '' ? $User : $this->User;
@@ -101,7 +106,11 @@
*/
function disconnect()
{
- if($debug) /* $GLOBALS['phpgw']->log */ echo
"disconnect: depricated";
+ if($this->debug)
+ {
+ // $GLOBALS['phpgw']->log
+ echo 'disconnect: depricated';
+ }
$this->adodb->close();
}
@@ -113,7 +122,11 @@
*/
function db_addslashes($str)
{
- if($debug) /* $GLOBALS['phpgw']->log */ echo
"to_timestanp: db_addsl";
+ if($this->debug)
+ {
+ // $GLOBALS['phpgw']->log
+ echo 'to_timestanp: db_addsl';
+ }
if(!$this->adodb) //workaround
{
return addslashes($str);
@@ -129,7 +142,11 @@
*/
function to_timestamp($epoch)
{
- if($debug) /* $GLOBALS['phpgw']->log */ echo
"to_timestanp: depricated";
+ if($this->debug)
+ {
+ // $GLOBALS['phpgw']->log
+ echo 'to_timestanp: depricated';
+ }
return substr($this->adodb->DBTimeStamp($epoch), 1, -1);
}
@@ -141,7 +158,11 @@
*/
function from_timestamp($timestamp)
{
- if($debug) /* $GLOBALS['phpgw']->log */ echo
"from_timestanp: depricated";
+ if($this->debug)
+ {
+ //$GLOBALS['phpgw']->log
+ echo 'from_timestanp: depricated';
+ }
return $this->adodb->UnixTimeStamp($timestamp);
}
@@ -153,7 +174,11 @@
*/
function limit($start)
{
- if($debug) /* $GLOBALS['phpgw']->log */ echo
"depricated: limit";
+ if($this->debug)
+ {
+ //$GLOBALS['phpgw']->log
+ echo 'depricated: limit';
+ }
die('where is the sql string?');
}
@@ -209,7 +234,11 @@
*/
function limit_query($Query_String, $offset = -1, $line = '',
$file = '', $num_rows = -1)
{
- if($this->debug) /* $GLOBALS['phpgw']->log */ echo
"depricated: limit_query";
+ if($this->debug)
+ {
+ //$GLOBALS['phpgw']->log
+ echo 'depricated: limit_query';
+ }
if(!$this->adodb->isConnected())
{
$this->connect();
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] phpgwapi/inc class.db.inc.php,1.13,
ceb <=