Skip to content

Commit

Permalink
Fixing null rootPath in image element
Browse files Browse the repository at this point in the history
  • Loading branch information
cheesegrits committed Sep 24, 2013
1 parent c63844a commit 9c35d1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/fabrik_element/image/image.php
Expand Up @@ -491,7 +491,7 @@ protected function rootFolder($value = '')
$rootFolder = '';
$params = $this->getParams();
$canSelect = ($params->get('image_front_end_select', '0') && JString::substr($value, 0, 4) !== 'http');
$defaultImg = $params->get('imagepath');
$defaultImg = $params->get('imagepath', '');
if ($canSelect && (JFolder::exists($defaultImg) || JFolder::exists(COM_FABRIK_BASE . $defaultImg)))
{
$rootFolder = $defaultImg;
Expand Down

0 comments on commit 9c35d1d

Please sign in to comment.