Fixed bug preventing images in root photo album from loading in embedphotos dialog.
This commit is contained in:
parent
2c8a82713e
commit
e128ff4e8f
@ -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'];
|
||||
|
||||
|
Reference in New Issue
Block a user