Return first site found if multiple ones match the URL
This commit is contained in:
parent
34ff8b1213
commit
c0a85cb0b0
@ -101,8 +101,9 @@ function getsiteid() {
|
|||||||
return $sites[0]["siteid"];
|
return $sites[0]["siteid"];
|
||||||
}
|
}
|
||||||
if (count($sites) > 1) {
|
if (count($sites) > 1) {
|
||||||
var_dump($sites);
|
//var_dump($sites);
|
||||||
die();
|
//die();
|
||||||
|
return $sites[0]['siteid'];
|
||||||
}
|
}
|
||||||
return $database->get("sites", "siteid");
|
return $database->get("sites", "siteid");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user