← Back to team overview

phpdevshell team mailing list archive

[Bug 932577] Re: getSettings should not return undefined settings, it should set it to NULL

 

Why the script may break? it is tested :)

Now you mean that this is a good way to work arround the problem, but it
is a work arround in my opinion and does not solve the problem really.

Some other example:
...Setting cfg1 is set, but cfg2 is not set...
When i need some settings from you, i ask you: "hey i need this settings: cfg1 and cfg2".
Then you give me the answer: "here are the settings: cfg1 is 'someting' and cfg2 is not set".
But when i ask the getSettings Method it gives me some answer: "here are the settings: cfg1"

Now you know what I mean right?

-- 
You received this bug notification because you are a member of
PHPDevShell, which is subscribed to PHPDevShell.
https://bugs.launchpad.net/bugs/932577

Title:
  getSettings should not return undefined settings, it should set it to
  NULL

Status in Open Source PHP RAD Framework with UI.:
  New

Bug description:
  When i try to make a configuration to set some settings, but the
  settings do not exist at this time. I must set the settings Like this
  to handle it:

  $setting = $this->db->getSettings(array('cfg1', 'cfg2'), 'cfgTest');
  $setting2 = array('cfg1'=>NULL, 'cfg2'=>NULL);

  $setting = array_merge($setting2, $setting);

  
  Otherwise, it destroys the layout of the page, when i do not handle it like this.

To manage notifications about this bug go to:
https://bugs.launchpad.net/phpdevshell/+bug/932577/+subscriptions


References