X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fconfig-functions.php;h=bc3eea007071a28706792fa977eac94d557114af;hp=cc35fc1cbfa47ce4cfaccf333a1b35a03637975f;hb=25b4a580b4c7e0d429eb8e436785d3c2ef304f8e;hpb=263a089d8a499e0e26d0af9e7aa7639f88b8ca60 diff --git a/inc/config-functions.php b/inc/config-functions.php index cc35fc1cbf..bc3eea0070 100644 --- a/inc/config-functions.php +++ b/inc/config-functions.php @@ -18,6 +18,7 @@ * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * + * Copyright (c) 2009, 2010 by Mailer Developer Team * * For more information visit: http://www.mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -294,8 +295,11 @@ function updateConfiguration ($entries, $values, $updateMode='', $config = '0') // Update entry $all .= sprintf("`%s`=`%s`%s%s,", $entry, $entry, $updateMode, (float)$values[$idx]); } else { - // Check if string or number - if (($values[$idx] + 0) === $values[$idx]) { + // Check if string or number but no array + if (is_array($values[$idx])) { + // Arrays must be fixed... + debug_report_bug('values[' . $idx . '] should not be an array! Content=
'.print_r($values[$idx], true).'
'); + } elseif (($values[$idx] + 0) === $values[$idx]) { // Number detected $all .= sprintf("`%s`=%s,", $entry, (float)$values[$idx]); @@ -346,10 +350,10 @@ function updateConfiguration ($entries, $values, $updateMode='', $config = '0') //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, "entries={$entries}"); SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_config` SET ".$entries." WHERE `config`=%s LIMIT 1", array(bigintval($config)), __FUNCTION__, __LINE__); - //* DEBUG: */ outputHtml(__FUNCTION__."(".__LINE__."):entries={$entries},affectedRows={$affectedRows}
"); + //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, "entries={$entries},affectedRows={$affectedRows}
"); // Rebuild cache - rebuildCacheFile('config', 'config'); + rebuildCache('config', 'config'); } // Filter for loading configuration