projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #19624 from agileware/CIVICRM-1670
[civicrm-core.git]
/
sql
/
GenerateGroups.php
diff --git
a/sql/GenerateGroups.php
b/sql/GenerateGroups.php
index 205b73d518952bc4ed2550ebe8f9548dbfe850f7..18381428ea9132eaab2d375abdca02dde137c171 100644
(file)
--- a/
sql/GenerateGroups.php
+++ b/
sql/GenerateGroups.php
@@
-14,6
+14,10
@@
* @package CRM
* @copyright CiviCRM LLC https://civicrm.org/licensing
*/
* @package CRM
* @copyright CiviCRM LLC https://civicrm.org/licensing
*/
+if (!(php_sapi_name() == 'cli' || (is_numeric($_SERVER['argc']) && $_SERVER['argc'] > 0))) {
+ header("HTTP/1.0 404 Not Found");
+ return;
+}
require_once '../civicrm.config.php';
require_once '../civicrm.config.php';