]> git.mxchange.org Git - core.git/commitdiff
Opps, forgot to return value + more logging.
authorRoland Haeder <roland@mxchange.org>
Mon, 10 Feb 2014 22:03:00 +0000 (23:03 +0100)
committerRoland Haeder <roland@mxchange.org>
Mon, 10 Feb 2014 22:03:00 +0000 (23:03 +0100)
Signed-off-by: Roland Häder <roland@mxchange.org>
inc/classes/main/database/class_BaseDatabaseWrapper.php
inc/classes/main/database/databases/class_LocalFileDatabase.php
inc/classes/middleware/database/class_DatabaseConnection.php

index 358646182e51a7f761455e2024ed279eb6bf9967..28ee12cf0ae8d9ffd2ce3f3306ef39b13ac91c49 100644 (file)
@@ -230,7 +230,10 @@ class BaseDatabaseWrapper extends BaseFrameworkSystem {
         */
        public function removeNonPublicDataFromArray (array $data) {
                /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('WRAPPER[' . $this->__toString() . ']: Calling this->getDatabaseInstance()->removeNonPublicDataFromArray(data) ...');
-               $this->getDatabaseInstance()->removeNonPublicDataFromArray($data);
+               $data = $this->getDatabaseInstance()->removeNonPublicDataFromArray($data);
+
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('WRAPPER[' . $this->__toString() . ']: data[]=' . gettype($data));
+               return $data;
        }
 }
 
index 7fd9e90cb6d3177c66b89b665c4e75b9218c87fb..59d89aabad8f7959d112c97f1def126f16b13ac9 100644 (file)
@@ -609,6 +609,7 @@ class LocalFileDatabase extends BaseDatabaseBackend implements DatabaseBackend {
                unset($data[$this->indexKey]);
 
                // Return it
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('DATABASE: data[' . gettype($data) . ']='.print_r($data, TRUE));
                return $data;
        }
 }
index e090cf2a4ae73757d3b94b63f27176a8693e99f3..65fed3cdc5a6e909cb95e5275a27a6970e8d0af0 100644 (file)
@@ -187,7 +187,10 @@ class DatabaseConnection extends BaseMiddleware implements DatabaseConnector, Re
        public function removeNonPublicDataFromArray (array $data) {
                // Call database backend
                /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('DB-CONNECTION[' . $this->__toString() . ']: Calling this->dbLayer->removeNonPublicDataFromArray(data) ...');
-               return $this->dbLayer->removeNonPublicDataFromArray($data);
+               $data = $this->dbLayer->removeNonPublicDataFromArray($data);
+
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('DB-CONNECTION[' . $this->__toString() . ']: data[]=' . gettype($data));
+               return $data;
        }
 }