Skip to content

Commit

Permalink
Update add-content.html.php
Browse files Browse the repository at this point in the history
  • Loading branch information
danpros committed Dec 13, 2023
1 parent a0c91f6 commit 4b9d74f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion system/admin/views/add-content.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@
if (file_exists($tagslang)) {
$ptags = unserialize(file_get_contents($tagslang));
$tkey = array_keys($tags);
$newlang = array_intersect_key($ptags, array_flip($tkey));
if (!empty($ptags)) {
$newlang = array_intersect_key($ptags, array_flip($tkey));
} else {
$newlang = array_combine($tkey, $tkey);
}
$tmp = serialize($newlang);
file_put_contents($tagslang, print_r($tmp, true));
}
Expand Down

0 comments on commit 4b9d74f

Please sign in to comment.