← Back to team overview

phpdevshell team mailing list archive

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

 

** Attachment added: "patch_932577.tar.gz"
   https://bugs.launchpad.net/phpdevshell/+bug/932577/+attachment/2744772/+files/patch_932577.tar.gz

-- 
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.:
  Fix Committed

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