SQL query compression for debug view
This commit is contained in:
parent
03a946614f
commit
82f4e4f685
@ -10,6 +10,8 @@
|
|||||||
|
|
||||||
public function __construct($query) {
|
public function __construct($query) {
|
||||||
global $pdo;
|
global $pdo;
|
||||||
|
$query = preg_replace("/[\n\t]+/", ' ', $query);
|
||||||
|
|
||||||
$this->query = $pdo->prepare($query);
|
$this->query = $pdo->prepare($query);
|
||||||
}
|
}
|
||||||
public function __call($function, $args) {
|
public function __call($function, $args) {
|
||||||
|
Loading…
Reference in New Issue
Block a user