mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 01:38:41 +00:00
string check
This commit is contained in:
parent
39a55a590b
commit
7505eadee1
|
|
@ -22,7 +22,7 @@ $IS_GITHUB = false;
|
|||
|
||||
$temp = \array_keys($_SERVER);
|
||||
foreach ($temp as $key) {
|
||||
if (\stripos(\strtolower($key), 'github') !== false) {
|
||||
if (\is_string($key) && \stripos(\strtolower($key), 'github') !== false) {
|
||||
$IS_GITHUB = true;
|
||||
|
||||
break;
|
||||
|
|
@ -31,7 +31,7 @@ foreach ($temp as $key) {
|
|||
|
||||
if (!$IS_GITHUB) {
|
||||
foreach ($_SERVER as $value) {
|
||||
if (\stripos(\strtolower($value), 'github') !== false) {
|
||||
if (\is_string($value) && \stripos(\strtolower($value), 'github') !== false) {
|
||||
$IS_GITHUB = true;
|
||||
|
||||
break;
|
||||
|
|
@ -42,7 +42,7 @@ if (!$IS_GITHUB) {
|
|||
$temp = \array_keys(\getenv());
|
||||
if (!$IS_GITHUB) {
|
||||
foreach ($temp as $key) {
|
||||
if (\stripos(\strtolower($key), 'github') !== false) {
|
||||
if (\is_string($key) && \stripos(\strtolower($key), 'github') !== false) {
|
||||
$IS_GITHUB = true;
|
||||
|
||||
break;
|
||||
|
|
@ -53,7 +53,7 @@ if (!$IS_GITHUB) {
|
|||
$temp = \array_values(\getenv());
|
||||
if (!$IS_GITHUB) {
|
||||
foreach ($temp as $value) {
|
||||
if (\stripos(\strtolower($value), 'github') !== false) {
|
||||
if (\is_string($value) && \stripos(\strtolower($value), 'github') !== false) {
|
||||
$IS_GITHUB = true;
|
||||
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user