From: Iain Patterson Date: Mon, 29 Apr 2013 16:21:49 +0000 (-0400) Subject: Use implode() instead of join(). X-Git-Tag: 2013-05-13~30 X-Git-Url: http://git.iain.cx/?a=commitdiff_plain;h=332a1a09e48620f97d510ba2419a09aca75aae03;p=readifood.git Use implode() instead of join(). Be consistent with use of implode()/explode(). --- diff --git a/propel/build/classes/ReadifoodObject.php b/propel/build/classes/ReadifoodObject.php index e7f6f2c..17efec8 100644 --- a/propel/build/classes/ReadifoodObject.php +++ b/propel/build/classes/ReadifoodObject.php @@ -9,7 +9,7 @@ function getLink($blurb = null, $url = null, $classes = null) { if (is_null($classes)) $classes = array(); else if (! is_array($classes)) $classes = array($classes); - return sprintf("%s", (count($classes)) ? " class=\"" . join(" ", $classes) . "\"" : "", (isset($url)) ? $url : $this->getURL(), (isset($blurb)) ? htmlspecialchars($blurb) : htmlspecialchars($this->getName())); + return sprintf("%s", (count($classes)) ? "class=\"" . implode(" ", $classes) . "\" " : "", (isset($url)) ? $url : $this->getURL(), (isset($blurb)) ? htmlspecialchars($blurb) : htmlspecialchars($this->getName())); } function getStrongLink($blurb = null, $url = null) {