Browse files

# [#28087] PHP errors when all modules are removed. Thanks David

  • Loading branch information...
1 parent b8583c4 commit e675a2eafe56592f0242fecc44ce77927f3a9b32 David Jardin committed with infograf768 Nov 19, 2012
Showing with 6 additions and 3 deletions.
  1. +5 −3 administrator/components/com_modules/helpers/html/modules.php
  2. +1 −0 installation/CHANGELOG
View
8 administrator/components/com_modules/helpers/html/modules.php
@@ -176,9 +176,11 @@ public static function positionList($clientId = 0)
}
// Pop the first item off the array if it's blank
- if (strlen($options[0]->text) < 1)
- {
- array_shift($options);
+ if(count($options)) {
+ if (strlen($options[0]->text) < 1)
+ {
+ array_shift($options);
+ }
}
return $options;
View
1 installation/CHANGELOG
@@ -28,6 +28,7 @@ $ -> Language fix or change
19-Nov-2012 Jean-Marie Simonet
# [#29714] Code style fixes based on Jenkins, replace uses of JRequest. Thanks Michael.
+ # [#28087] PHP errors when all modules are removed. Thanks David
18-Nov-2012 Jean-Marie Simonet
# [#29684] Wrong HTML markup on category edit. Thanks Ofer

0 comments on commit e675a2e

Please sign in to comment.