Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Small fixes for no-sql drivers
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Sep 15, 2014
1 parent 2579c36 commit 80c1343
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/src/core/classes/class.AJXP_AbstractMetaSource.php
Expand Up @@ -41,7 +41,7 @@ public function initMeta($accessDriver){
if($parentRepo != null){
$sources = $parentRepo->getOption("META_SOURCES");
$qParent = $sources["meta.quota"];
$this->options = array_merge($this->options, $qParent);
if(is_array($qParent)) $this->options = array_merge($this->options, $qParent);
}
}

Expand Down
2 changes: 1 addition & 1 deletion core/src/core/classes/class.ConfService.php
Expand Up @@ -525,7 +525,7 @@ public static function filterRepositoryListWithCriteria($repoList, $criteria){
$repositories[$repoId] = $repoObject;
}else if($value == AJXP_FILTER_NOT_EMPTY && !empty($comp)){
$repositories[$repoId] = $repoObject;
}else if(strpos($value, "regexp:")===0 && preg_match(str_replace("regexp:", "", $value), $comp)){
}else if(is_string($value) && strpos($value, "regexp:")===0 && preg_match(str_replace("regexp:", "", $value), $comp)){
$repositories[$repoId] = $repoObject;
}else if($value == $comp){
$repositories[$repoId] = $repoObject;
Expand Down
2 changes: 1 addition & 1 deletion core/src/plugins/action.share/class.ShareCenter.php
Expand Up @@ -1515,7 +1515,7 @@ public function createSharedRepository($httpVars, $repository, $accessDriver, $u
return 100;
}
$foldersharing = $this->getFilteredOption("ENABLE_FOLDER_SHARING", $this->repository->getId());
if (isset($foldersharing) && ($foldersharing === false || $foldersharing == "disable" )) {
if (isset($foldersharing) && ($foldersharing === false || (is_string($foldersharing) && $foldersharing == "disable"))) {
return 103;
}
$loggedUser = AuthService::getLoggedUser();
Expand Down
3 changes: 3 additions & 0 deletions core/src/plugins/action.share/class.ShareStore.php
Expand Up @@ -87,6 +87,9 @@ public function storeShare($parentRepositoryId, $shareData, $type="minisite", $e
$this->confStorage->simpleStoreSet("share", $hash, $shareData, "serial", $parentRepositoryId);
return $hash;
}
if(!empty($existingHash)){
throw new Exception("Current storage method does not support parameters edition!");
}

$loader = 'ShareCenter::loadMinisite($data);';
if($type == "publiclet"){
Expand Down

0 comments on commit 80c1343

Please sign in to comment.