Commit 054e5786 authored by David Morley's avatar David Morley

simpler

parent c10a22bf
......@@ -47,7 +47,7 @@ if ($domain) {
$sql = "SELECT domain,pingdomurl,score,datecreated,weight FROM pods WHERE domain = $1";
$sleep = '0';
$result = pg_query_params($dbh, $sql, [$domain]);
} elseif (php_sapi_name() == "cli") {
} elseif (PHP_SAPI === "cli") {
$sql = 'SELECT domain,pingdomurl,score,datecreated,adminrating,weight FROM pods';
$sleep = '1';
$result = pg_query($dbh, $sql);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment