Permalink
Browse files

does need to check for empty

git-svn-id: http://svn.php.net/repository/pear/packages/Net_URL/trunk@97318 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent 94ccd8c commit 8944ba0f2527026e43f66e2104fa59f8f245b7d9 Shane Caraveo committed Sep 29, 2002
Showing with 2 additions and 1 deletion.
  1. +2 −1 URL.php
View
@@ -241,7 +241,8 @@ function addRawQueryString($querystring)
*/
function getQueryString()
{
- if (is_array($this->querystring)) {
+ if (!empty($this->querystring) &&
+ is_array($this->querystring)) {
foreach ($this->querystring as $name => $value) {
if (is_array($value)) {
foreach ($value as $k => $v) {

0 comments on commit 8944ba0

Please sign in to comment.