mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-11 14:38:39 +00:00
Bug fixes e.g. csp and other
This commit is contained in:
parent
2692eae357
commit
82bcc6fb91
|
|
@ -41,6 +41,7 @@ class Basic
|
||||||
public static function freaquency(array $values) : array
|
public static function freaquency(array $values) : array
|
||||||
{
|
{
|
||||||
$freaquency = [];
|
$freaquency = [];
|
||||||
|
$sum = 1;
|
||||||
|
|
||||||
if (!($isArray = is_array(reset($values)))) {
|
if (!($isArray = is_array(reset($values)))) {
|
||||||
$sum = array_sum($values);
|
$sum = array_sum($values);
|
||||||
|
|
|
||||||
|
|
@ -234,7 +234,7 @@ class Repository
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($source)) {
|
if (isset($source)) {
|
||||||
return stripos($haystack, '//') ? $this->cloneRemote($source) : $this->cloneFrom($source);
|
return stripos($source, '//') !== false ? $this->cloneRemote($source) : $this->cloneFrom($source);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->run('init');
|
return $this->run('init');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user