public function option_saveconfig($k, $v) { if (is_array($v)) { trigger_error(sprintf("You cannot pass %s more than once", $k), E_USER_ERROR); } // No arguments passed, default to 'true' if (is_bool($v)) { $v = "true"; } $val = self::boolval($v); if (is_bool($val)) { Config::set_saveconfig($v); } else { trigger_error("yes/no || on/off || true/false || 1/0 expected", E_USER_ERROR); } }