Skip to content

Commit

Permalink
bug fix on foreach
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberomulus committed May 20, 2015
1 parent d2bc4a2 commit 92a1a5d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/Entries/URLEntry.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,13 @@ class URLEntry extends SiteMapEntry
* An array of GoogleImageEntry.<br />
* Set null for not display
*/
public function __construct($url, \DateTime $lastModification=null, $changeFrequence=null, $priority=null, $googleImageEntries = null)
public function __construct($url, \DateTime $lastModification=null, $changeFrequence=null, $priority=null, $googleImageEntries = array())
{
$this->url = $url;
$this->lastModification = $lastModification;
$this->changeFrequence = $changeFrequence;
$this->priority = $priority;

if (is_array($googleImageEntries))
$this->googleImageEntries = $googleImageEntries;
else
$this->googleImageEntries = null;
$this->googleImageEntries = $googleImageEntries;
}

/**
Expand Down

0 comments on commit 92a1a5d

Please sign in to comment.