From 43f501a5e2143e9da0c04b2007fb5e057f44da79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A4=D1=91=D0=B4=D0=BE=D1=80=20=D0=9F=D0=BE=D0=B4=D0=BB?= =?UTF-8?q?=D0=B5=D1=81=D0=BD=D0=BE=D0=B2?= Date: Tue, 12 Jul 2016 17:21:04 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B1=D1=80=D0=B0=D0=BB=20=D0=BF=D0=B5?= =?UTF-8?q?=D1=80=D0=B5=D0=BA=D0=BE=D0=B4=D0=B8=D1=80=D0=BE=D0=B2=D0=BA?= =?UTF-8?q?=D1=83=20=D1=82.=D0=BA=20=D0=B2=D1=81=D0=B5=20=D1=82=D0=B5?= =?UTF-8?q?=D0=BF=D0=B5=D1=80=D1=8C=20utf-8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/database_pdo.php | 3 --- core/httprequest.php | 6 +----- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/core/database_pdo.php b/core/database_pdo.php index 94cbb75..a9a0f2e 100644 --- a/core/database_pdo.php +++ b/core/database_pdo.php @@ -36,9 +36,6 @@ class Database extends PDO public function executeQuery($query) { - if (isset($_GET['debug'])) { - fb($query); - } $stmt = $this->prepare($query); $stmt->setFetchMode(PDO::FETCH_ASSOC); $stmt->execute(); diff --git a/core/httprequest.php b/core/httprequest.php index a914445..c7af0a9 100644 --- a/core/httprequest.php +++ b/core/httprequest.php @@ -29,12 +29,8 @@ class HttpRequest extends Collection implements ArrayAccess $ajax = $this->isAjax(); foreach ($list as $key => $value) { $data = new SafeCollection(); + $data->import($value); - if ($ajax) { - $data->import(json::prepare($value, array('self', 'unicode_decode'))); - } else { - $data->import($value); - } parent::set($key, $data); }