]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/admin-inc.php
Extension ext-network continued, saving NULL entries fixed:
[mailer.git] / inc / modules / admin / admin-inc.php
index 6d0f680f912ce21e153055a3642d5bc2f06b9860..76d9c6666c1b3979292b222b13ea4f75786613b0 100644 (file)
@@ -496,6 +496,9 @@ function adminSaveSettings (&$postData, $tableName = '_config', $whereStatement
                                if ('' . $val . '' == '' . $test . '') {
                                        // Add numbers
                                        $tableData[] = sprintf("`%s`=%s", $id, $test);
+                               } elseif (is_null($val)) {
+                                       // Add NULL
+                                       $tableData[] = sprintf("`%s`=NULL", $id);
                                } else {
                                        // Add strings
                                        $tableData[] = sprintf("`%s`='%s'", $id, trim($val));