mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
fixes #4850
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7122 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
b05185f08a
commit
288db81884
2 changed files with 186 additions and 192 deletions
|
@ -495,14 +495,14 @@ class DboSource extends DataSource {
|
|||
$sql = substr($sql, 0, 200) . '[...]';
|
||||
}
|
||||
|
||||
if (($error) || Configure::read() > 1) {
|
||||
if ($error && Configure::read() > 0) {
|
||||
e("<p style = \"text-align:left\"><b>Query:</b> {$sql} ");
|
||||
if ($error) {
|
||||
trigger_error("<span style = \"color:Red;text-align:left\"><b>SQL Error:</b> {$this->error}</span>", E_USER_WARNING);
|
||||
} else {
|
||||
e("<small>[Aff:{$this->affected} Num:{$this->numRows} Took:{$this->took}ms]</small>");
|
||||
}
|
||||
print ('</p>');
|
||||
e('</p>');
|
||||
}
|
||||
}
|
||||
/**
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue