]> git.mxchange.org Git - mailer.git/blobdiff - inc/pool-functions.php
Fixes + asserts
[mailer.git] / inc / pool-functions.php
index 1bfc33bfc48411f2ff0bfe8ac99942f7977b45b3..08490fb27f00e15f8b56ed40fae9788e3046bd22 100644 (file)
@@ -85,7 +85,7 @@ function updatePoolDataById ($poolId, $columnName, $data, $updateMode = NULL, $w
        // Is update mode set?
        if (!is_null($updateMode)) {
                // Don't allow array as data here
-               assert(!is_array($data));
+               assert(!is_array($data), 'data must not be an array.');
 
                // Then use this on the column with this mode (mostly counters)
                sqlQueryEscaped('UPDATE `{?_MYSQL_PREFIX?}_pool` SET `%s`=`%s`%s%s WHERE `id`=%s' . $whereSql . ' LIMIT 1',