mirror of https://github.com/itflow-org/itflow
Uncommented out temp comment check cli runtime
This commit is contained in:
parent
810af638a3
commit
2fb75e6d67
|
|
@ -44,7 +44,7 @@ if (isset($_GET['update'])) {
|
|||
$recurring_ticket_count = $row['num'];
|
||||
|
||||
// Calendar Event Count
|
||||
$row = mysqli_fetch_assoc(mysqli_query($mysqli,"SELECT COUNT('event_id') AS num FROM events"));
|
||||
$row = mysqli_fetch_assoc(mysqli_query($mysqli,"SELECT COUNT('event_id') AS num FROM calendar_events"));
|
||||
$calendar_event_count = $row['num'];
|
||||
|
||||
// Quote Count
|
||||
|
|
|
|||
|
|
@ -4,9 +4,9 @@
|
|||
chdir(dirname(__FILE__));
|
||||
|
||||
// Ensure we're running from command line
|
||||
//if (php_sapi_name() !== 'cli') {
|
||||
// die("This script must be run from the command line.\n");
|
||||
//}
|
||||
if (php_sapi_name() !== 'cli') {
|
||||
die("This script must be run from the command line.\n");
|
||||
}
|
||||
|
||||
require_once "../config.php";
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue