Skip to content
Permalink
Browse files

Correct 1 error and 1 notice

  • Loading branch information...
lnprieto committed Nov 7, 2019
1 parent 9aac435 commit a1b59259576457e1393431908cf843937aef53b4
Showing with 3 additions and 3 deletions.
  1. +2 −2 lodel/scripts/backupfunc.php
  2. +1 −1 lodel/scripts/view.php
@@ -272,7 +272,7 @@ function importFromZip($archive, $accepteddirs, $acceptedexts = array (), $model
$pathinfos = pathinfo($file);
foreach($acceptedexts as $ext)
{
if($pathinfos['extension'] == $ext)
if((isset($pathinfos['extension'])) && ($pathinfos['extension'] == $ext))
{
$files_to_extract[] = $file;
break;
@@ -301,4 +301,4 @@ function importFromZip($archive, $accepteddirs, $acceptedexts = array (), $model
return false;
return true;
}
}
@@ -793,7 +793,7 @@ function renderOptions($arr, $selected)
*/
function generateLangCache($lang, $file, $tags)
{
$txt = '';
$txt = array();
foreach($tags as $tag) {
$dotpos = strpos($tag, '.');
$group = substr($tag, 0, $dotpos);

0 comments on commit a1b5925

Please sign in to comment.
You can’t perform that action at this time.