mirror of
https://github.com/itflow-org/itflow
synced 2026-03-02 11:54:52 +00:00
Uncommented out temp comment check cli runtime
This commit is contained in:
@@ -44,7 +44,7 @@ if (isset($_GET['update'])) {
|
|||||||
$recurring_ticket_count = $row['num'];
|
$recurring_ticket_count = $row['num'];
|
||||||
|
|
||||||
// Calendar Event Count
|
// 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'];
|
$calendar_event_count = $row['num'];
|
||||||
|
|
||||||
// Quote Count
|
// Quote Count
|
||||||
|
|||||||
@@ -4,9 +4,9 @@
|
|||||||
chdir(dirname(__FILE__));
|
chdir(dirname(__FILE__));
|
||||||
|
|
||||||
// Ensure we're running from command line
|
// Ensure we're running from command line
|
||||||
//if (php_sapi_name() !== 'cli') {
|
if (php_sapi_name() !== 'cli') {
|
||||||
// die("This script must be run from the command line.\n");
|
die("This script must be run from the command line.\n");
|
||||||
//}
|
}
|
||||||
|
|
||||||
require_once "../config.php";
|
require_once "../config.php";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user