summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlsces <lester@lsces.co.uk>2026-03-26 17:45:06 +0000
committerlsces <lester@lsces.co.uk>2026-03-26 17:45:06 +0000
commit9f9b4a6deae8b2ad85efa4c82580182b0cb9cf1c (patch)
tree8a55f341db94bc59fe112387535059997013e4bb
parent92a93aad08740b62f876938919d38006592216c4 (diff)
downloadkernel-9f9b4a6deae8b2ad85efa4c82580182b0cb9cf1c.tar.gz
kernel-9f9b4a6deae8b2ad85efa4c82580182b0cb9cf1c.tar.bz2
kernel-9f9b4a6deae8b2ad85efa4c82580182b0cb9cf1c.zip
String/null confusion change ... empty string is tidier than null
-rwxr-xr-xincludes/simple_form_functions_lib.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/simple_form_functions_lib.php b/includes/simple_form_functions_lib.php
index a4a835e..a4c87e2 100755
--- a/includes/simple_form_functions_lib.php
+++ b/includes/simple_form_functions_lib.php
@@ -73,11 +73,11 @@ function toggle_preference( $pName, $pValue = null, $pPackageName = null ) {
/**
* Store or update a value in the database - automatically collects data from $_REQUEST[$pFeature]
- * @param $pFeature name of the parameter to be set in the database
- * @param $pPackageName name of the package the feature belongs to
+ * @param string $pFeature name of the parameter to be set in the database
+ * @param string $pPackageName name of the package the feature belongs to
* @return void
*/
-function simple_set_value( $pFeature, $pPackageName = null ) {
+function simple_set_value( $pFeature, $pPackageName = '' ) {
global $_REQUEST, $gBitSystem, $gBitSmarty;
if( isset( $_REQUEST[$pFeature] ) ) {
$gBitSystem->storeConfig( $pFeature, $_REQUEST[$pFeature], $pPackageName );