Skip to content

Commit

Permalink
Merge pull request #672 from Groruk/main
Browse files Browse the repository at this point in the history
  • Loading branch information
Groruk authored May 17, 2020
2 parents 2dca124 + e55f8b3 commit 8529ce7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion web/includes/sb-callback.php
Original file line number Diff line number Diff line change
Expand Up @@ -2917,7 +2917,7 @@ function RehashAdmins($server)
for ($i = 0; $i < count($servers); $i++) {
$ret = rcon("sm_rehash", $servers[$i]);

if ($ret) {
if (isset($ret) && $ret === '') {
$objResponse->addAppend(
"rehashDiv",
"innerHTML",
Expand Down
7 changes: 5 additions & 2 deletions web/scripts/sourcebans.js
Original file line number Diff line number Diff line change
Expand Up @@ -1036,8 +1036,11 @@ function closeMsg(redir)
function TabToReload()
{
var url = window.location.toString();
var nurl = "window.location = '" + url.replace("#^" + url[url.length-1],"") + "'";
$('admin_tab_0').setProperty('onclick', nurl);
var nurl = url.replace("#^" + url[url.length-1],"");

window.setTimeout(function(){
window.location.href = nurl;
}, 2000);
}

function CheckEmail(type, id)
Expand Down

0 comments on commit 8529ce7

Please sign in to comment.