{"action":"closed","issue":{"url":"https://api.github.com/repos/phpipam/phpipam/issues/55","labels_url":"https://api.github.com/repos/phpipam/phpipam/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/phpipam/phpipam/issues/55/comments","events_url":"https://api.github.com/repos/phpipam/phpipam/issues/55/events","html_url":"https://github.com/phpipam/phpipam/issues/55","id":104407482,"number":55,"title":"PHP warnings if there is no name server set configured","user":{"login":"fxed","id":13846507,"avatar_url":"https://avatars.githubusercontent.com/u/13846507?v=3","gravatar_id":"","url":"https://api.github.com/users/fxed","html_url":"https://github.com/fxed","followers_url":"https://api.github.com/users/fxed/followers","following_url":"https://api.github.com/users/fxed/following{/other_user}","gists_url":"https://api.github.com/users/fxed/gists{/gist_id}","starred_url":"https://api.github.com/users/fxed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fxed/subscriptions","organizations_url":"https://api.github.com/users/fxed/orgs","repos_url":"https://api.github.com/users/fxed/repos","events_url":"https://api.github.com/users/fxed/events{/privacy}","received_events_url":"https://api.github.com/users/fxed/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-02T05:50:13Z","updated_at":"2015-09-02T06:56:32Z","closed_at":"2015-09-02T06:56:32Z","body":"Hi\r\n\r\nI upgraded to 1.18.009 today and recognized that if there is no name server set configured I will receive the following PHP warnings: \r\nWarning: Invalid argument supplied for foreach() in /var/www/html/phpipam_dev/functions/classes/class.Sections.php on line 452\r\nWarning: Invalid argument supplied for foreach() in /var/www/html/phpipam_dev/app/admin/subnets/edit-nameserver-dropdown.php on line 28\r\nWarning: array_filter() expects parameter 1 to be array, null given in /var/www/html/phpipam_dev/app/admin/subnets/edit-nameserver-dropdown.php on line 39\r\n\r\nSteps to reproduce: \r\n1. Delete all name server sets.\r\n2. Go to any section, open up a subnet detail popup.\r\n\r\nWorkaround: \r\n1. Configure a name server set under Administration - Nameserver with the following settings:\r\nName: Dummy (or any other name)\r\nPrimary: 127.0.0.1\r\nCheck all sections and save. \r\n\r\nThis will fill the variables so the errors won't show up."}}