From 13a37e10f2f21cf83560d2fbf59b2817a488eeed Mon Sep 17 00:00:00 2001 From: Timothy Warren Date: Tue, 25 Sep 2012 14:16:01 +0000 Subject: [PATCH] Remove some references, and add autoload parameter to composer.json --- README.md | 2 +- autoload.php | 2 +- classes/db_pdo.php | 3 +-- composer.json | 4 +++- tests/db_files/FB_TEST_DB.FDB | Bin 802816 -> 802816 bytes 5 files changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 0a56506..6ba32db 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Query -A query builder/abstraction layer, using prepared queries for security. +A query builder/database abstraction layer, using prepared queries for security. [![Build Status](https://secure.travis-ci.org/timw4mail/Query.png)](http://travis-ci.org/timw4mail/Query) diff --git a/autoload.php b/autoload.php index 4bbe26b..d8ef8e2 100644 --- a/autoload.php +++ b/autoload.php @@ -105,7 +105,7 @@ function db_filter($array, $index) { $new_array = array(); - foreach($array as &$a) + foreach($array as $a) { $new_array[] = $a[$index]; } diff --git a/classes/db_pdo.php b/classes/db_pdo.php index 7a07f81..c0c1358 100644 --- a/classes/db_pdo.php +++ b/classes/db_pdo.php @@ -107,7 +107,7 @@ abstract class DB_PDO extends PDO { } // Bind the parameters - foreach($data as $k => &$value) + foreach($data as $k => $value) { if(is_numeric($k)) { @@ -220,7 +220,6 @@ abstract class DB_PDO extends PDO { $ident = implode(',', $parts); } - // Split each identifier by the period $hiers = explode('.', $ident); $hiers = array_map('mb_trim', $hiers); diff --git a/composer.json b/composer.json index 186bcd6..dec3f55 100644 --- a/composer.json +++ b/composer.json @@ -14,5 +14,7 @@ "require": { "php": ">=5.2.0" }, - + "autoload": { + "files": ["autoload.php"] + } } \ No newline at end of file diff --git a/tests/db_files/FB_TEST_DB.FDB b/tests/db_files/FB_TEST_DB.FDB index 0644fd99807573ed9e1a70c45f0657e35d54dcd5..ef41d68d1092c513a2ae2141197a81d76d0cdb83 100644 GIT binary patch delta 598 zcmZ9HJxF6g5P)a)?TaRZWJLte;z*1SJ*xx+k*i`94n(gxv=b5SM1Nflg6{Nwm+_j&!`UxCVE%ch|YV--hsR9&VIw}e2niGe7`V_Fq;49!T+VmcUlz1 zMh@T)9{_>dzW~0BTnrq%YZfRFyys&;z8ks2?EH`Pccm3-CA4z1l3KZ1CA4bOs$Hw( ziAqU@f6Hzrl}wiDL+UZ1^Qn_O$%DBIYWB7F40gd0dhq0UAe{^x$qbA;9WX8jp(6TV zS>|Av`Bda!Lkz+y$4|n84Cnhfzb5#Y?Zuq{xzMs3u`B;^I^xBz=e0NP zTGP$pirqCcRcCi^m4^5|QKd<|H|td@741LK@>q_&?6Is`p74z)YnWWD9FM}I$zd?qn1CSK#b^}|grHUuM0>$jVX>IrY6=Svv=nbs zX=8*SL4&1L5?7-jMyzZEXWfjVGwi(mhPVH>&$8l{6(1weAM1(0@1kgV>f}^A3{Vvh zfI`;p0MdOoUAt{=0|iCw%r_8m+To*M=CEOfGD;X#81*o!GO97EGiosEWz;;SK9!QE ztQPQ@=E20f&SJjP7^?d-7wD$SbCNVePLDu~Hvl;^02^iq(qUW_ zGQ%(=I3{YZsM|&qEO9?=xMLmbet6Ndvn3oPjYToadHsh8`S>jIlQNEzBG)RI