From 9c8d6e29200eab9af040eb93b4da290e1a2bc4ee Mon Sep 17 00:00:00 2001 From: Chris Burgess Date: Sun, 8 Nov 2015 22:49:54 +1300 Subject: [PATCH] CRM-17177. die() instead of trigger_error() when accessed via web. --- bin/cli.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/cli.class.php b/bin/cli.class.php index 5340869a1c..1a2b8cab6c 100644 --- a/bin/cli.class.php +++ b/bin/cli.class.php @@ -88,7 +88,7 @@ class civicrm_cli { return TRUE; } else { - trigger_error("cli.php can only be run from command line.", E_USER_ERROR); + die("cli.php can only be run from command line."); } } -- 2.25.1