From e128ff4e8fa8da9ef7d0225c4e92b28d02155a12 Mon Sep 17 00:00:00 2001 From: Andrew Manning Date: Sat, 13 Aug 2016 14:20:41 -0400 Subject: Fixed bug preventing images in root photo album from loading in embedphotos dialog. --- Zotlabs/Module/Embedphotos.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Zotlabs') diff --git a/Zotlabs/Module/Embedphotos.php b/Zotlabs/Module/Embedphotos.php index 0dac873c5..000caad60 100644 --- a/Zotlabs/Module/Embedphotos.php +++ b/Zotlabs/Module/Embedphotos.php @@ -40,8 +40,8 @@ class Embedphotos extends \Zotlabs\Web\Controller { } $resource_id = array_pop(explode("/", $href)); $r = q("SELECT obj from item where resource_type = 'photo' and resource_id = '%s' limit 1", - dbesc($resource_id) - ); + dbesc($resource_id) + ); if(!$r) { json_return_and_die(array('errormsg' => 'Error retrieving resource ' . $resource_id, 'status' => false)); } @@ -83,7 +83,7 @@ function embedphotos_widget_album($args) { return ''; if($args['album']) - $album = $args['album']; + $album = (($args['album'] === '/') ? '' : $args['album'] ); if($args['title']) $title = $args['title']; -- cgit v1.2.3