Fixed uninitialized variables and unexpected error states. Also: Misspelled key in German language file.
This commit is contained in:
parent
aaf5d35c0e
commit
efe08266d8
@ -91,12 +91,14 @@ class admin_maintain_updates extends AdminPanelAction {
|
||||
$success = -1;
|
||||
$ver = array(
|
||||
'stable' => 'unknown',
|
||||
'unstable' => 'unknown'
|
||||
'unstable' => 'unknown',
|
||||
'notice' => ''
|
||||
);
|
||||
|
||||
// retrieve content of update file
|
||||
$file = utils_geturl($this->web);
|
||||
|
||||
if ($file) {
|
||||
if (!$file ['errno'] && $file ['http_code'] < 400) {
|
||||
$ver = utils_kexplode($file ['content']);
|
||||
if (!isset($ver ['stable'])) {
|
||||
$success = -1;
|
||||
|
@ -31,6 +31,8 @@ function plugin_lastcomments_widget() {
|
||||
// they're located under plugin.PLUGINNAME/lang/LANGID/
|
||||
$lang = lang_load('plugin:lastcomments');
|
||||
|
||||
$update = false;
|
||||
|
||||
if ($count = count($list)) {
|
||||
while ($arr = array_pop($list)) {
|
||||
theme_comments_filters($arr, $id);
|
||||
|
@ -23,7 +23,7 @@
|
||||
'nofiles' => 'Keine Mediendaten vorhanden.',
|
||||
'loadfile' => 'Datei/en hochladen',
|
||||
|
||||
'seòected' => 'Ausgewählt',
|
||||
'selected' => 'Ausgewählt',
|
||||
'selectaction' => '-- auswahl --',
|
||||
'addtogallery' => 'Zur Gallery hinzufügen',
|
||||
'newgallery' => 'Neue Gallery',
|
||||
|
Loading…
x
Reference in New Issue
Block a user