summaryrefslogtreecommitdiff
path: root/includes/theme.inc
diff options
context:
space:
mode:
authorDavid Rothstein <drothstein@gmail.com>2015-03-30 22:12:31 -0400
committerDavid Rothstein <drothstein@gmail.com>2015-03-30 22:12:31 -0400
commit63065623fba4087ba574b64efce054ae5a5b0683 (patch)
treea88483bfac5ebee9def28e866cce978ea6725375 /includes/theme.inc
parentb1001811d95d5b4dc7ca4916fc74f773106ac9f0 (diff)
downloadbrdo-63065623fba4087ba574b64efce054ae5a5b0683.tar.gz
brdo-63065623fba4087ba574b64efce054ae5a5b0683.tar.bz2
Issue #1946240 by hampercm, eiriksm, David_Rothstein, rpayanm, rszrama, Yaron Tal, dgtlife, madhusudanmca, er.pushpinderrana, Cottser: Remove the hardcoded 0 index in theme_status_messages()
Diffstat (limited to 'includes/theme.inc')
-rw-r--r--includes/theme.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/theme.inc b/includes/theme.inc
index 1833beeb8..8d5348dfc 100644
--- a/includes/theme.inc
+++ b/includes/theme.inc
@@ -1691,7 +1691,7 @@ function theme_status_messages($variables) {
$output .= " </ul>\n";
}
else {
- $output .= $messages[0];
+ $output .= reset($messages);
}
$output .= "</div>\n";
}