When calling /change, don't set prefs if empty/no parameters are given
This commit is contained in:
parent
e2054c13c8
commit
918631d676
|
@ -219,8 +219,12 @@ class ProvisioningHelper
|
||||||
* Initialize preference values passed from the dashboard (if any exist)
|
* Initialize preference values passed from the dashboard (if any exist)
|
||||||
*/
|
*/
|
||||||
private function initializePrefs() {
|
private function initializePrefs() {
|
||||||
Application_Model_Preference::SetStationName($this->station_name);
|
if ($this->statio_name) {
|
||||||
Application_Model_Preference::SetStationDescription($this->description);
|
Application_Model_Preference::SetStationName($this->station_name);
|
||||||
|
}
|
||||||
|
if ($this->descption) {
|
||||||
|
Application_Model_Preference::SetStationDescription($this->description);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue