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); }