From 9b656291850abd029f03978924bf6434d38a8656 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 10 Aug 2011 15:48:02 +0200 Subject: [PATCH] [ticket/843] Do not try to use plugins on upload, when none is installed. --- root/includes/gallery/plugins.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/root/includes/gallery/plugins.php b/root/includes/gallery/plugins.php index 9f024c7d..db2b5aa9 100644 --- a/root/includes/gallery/plugins.php +++ b/root/includes/gallery/plugins.php @@ -97,7 +97,7 @@ static public function generate_image_link($mode) { global $user; - if ($mode == 'plugin') + if ($mode == 'plugin' && !empty(self::$plugins[0])) { $mode = self::$plugins[0]; }