Some bugfixes

This commit is contained in:
2017-10-01 11:02:50 +03:00
parent 8ebd1c6396
commit 0bb1d3aa66
2 changed files with 3 additions and 2 deletions

View File

@@ -62,7 +62,7 @@ function CheckFile() {
}
function AddHttp($Link) {
if (!preg_match("~^(?:f|ht)tps?://~i",$Link)) {
if (!$Link=="") if (!preg_match("~^(?:f|ht)tps?://~i",$Link)) {
$Link = "http://".$Link;
}
return $Link;
@@ -260,6 +260,7 @@ function EntriesView() {
$EntriesReplySorted=$Entries;
if (isset($Entries)) foreach($Entries as $Entry) {
if (isset($Entry[9])) {
unset($a); unset($b);
foreach($EntriesReplySorted as $n=>$EntrySort) if ($EntrySort[5]==$Entry[5]) $a=$n;
foreach($EntriesReplySorted as $n=>$EntrySort) if ($EntrySort[5]==$Entry[9]) $b=$n;
if (isset($b)) {