Skip to content

Commit

Permalink
Fix removing an image from the favourites
Browse files Browse the repository at this point in the history
  • Loading branch information
Erftralle committed Dec 1, 2016
1 parent 348f03e commit ae14f99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/com_joomgallery/models/favourites.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public function __construct()
// Set the image id
$view = JRequest::getCmd('view');
$task = JRequest::getCmd('task');
if( $view != 'favourites'
if( ($view != 'favourites' || $task == 'removeimage')
&& $view != 'downloadzip'
&& $task != 'removeall'
&& $task != 'switchlayout'
Expand Down

0 comments on commit ae14f99

Please sign in to comment.