Fixed uninitialized variables and unexpected error states. Also: Misspelled key in German language file.

This commit is contained in:
azett 2021-02-20 11:53:57 +01:00
parent aaf5d35c0e
commit efe08266d8
3 changed files with 7 additions and 3 deletions

View File

@ -91,12 +91,14 @@ class admin_maintain_updates extends AdminPanelAction {
$success = -1; $success = -1;
$ver = array( $ver = array(
'stable' => 'unknown', 'stable' => 'unknown',
'unstable' => 'unknown' 'unstable' => 'unknown',
'notice' => ''
); );
// retrieve content of update file
$file = utils_geturl($this->web); $file = utils_geturl($this->web);
if ($file) { if (!$file ['errno'] && $file ['http_code'] < 400) {
$ver = utils_kexplode($file ['content']); $ver = utils_kexplode($file ['content']);
if (!isset($ver ['stable'])) { if (!isset($ver ['stable'])) {
$success = -1; $success = -1;

View File

@ -31,6 +31,8 @@ function plugin_lastcomments_widget() {
// they're located under plugin.PLUGINNAME/lang/LANGID/ // they're located under plugin.PLUGINNAME/lang/LANGID/
$lang = lang_load('plugin:lastcomments'); $lang = lang_load('plugin:lastcomments');
$update = false;
if ($count = count($list)) { if ($count = count($list)) {
while ($arr = array_pop($list)) { while ($arr = array_pop($list)) {
theme_comments_filters($arr, $id); theme_comments_filters($arr, $id);

View File

@ -23,7 +23,7 @@
'nofiles' => 'Keine Mediendaten vorhanden.', 'nofiles' => 'Keine Mediendaten vorhanden.',
'loadfile' => 'Datei/en hochladen', 'loadfile' => 'Datei/en hochladen',
'seòected' => 'Ausgewählt', 'selected' => 'Ausgewählt',
'selectaction' => '-- auswahl --', 'selectaction' => '-- auswahl --',
'addtogallery' => 'Zur Gallery hinzufügen', 'addtogallery' => 'Zur Gallery hinzufügen',
'newgallery' => 'Neue Gallery', 'newgallery' => 'Neue Gallery',