Skip to content

Commit

Permalink
Cosmetic changes
Browse files Browse the repository at this point in the history
  • Loading branch information
arnemorken committed Nov 27, 2024
1 parent 1aa7968 commit b775399
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions data/mysql/anyTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -301,14 +301,14 @@ private function initProperties($paramOrType)
//
// Set defaults if not set yet
//
if (!$this->mIdKey) $this->mIdKey = $this->mType."_id";
if (!$this->mIdKeyTable) $this->mIdKeyTable = $this->mIdKey;
if (!$this->mIdKeyMetaTable) $this->mIdKeyMetaTable = $this->mIdKey;
if (!$this->mNameKey) $this->mNameKey = $this->mType."_name";
if (!$this->mMetaId) $this->mMetaId = "meta_id";
if (!$this->mOrderBy) $this->mOrderBy = $this->mNameKey;
if (!$this->mOrderDir) $this->mOrderDir = "DESC";
//if (!$this->mHeader) $this->mHeader = false;
if (!$this->mIdKey) $this->mIdKey = $this->mType."_id";
if (!$this->mIdKeyTable) $this->mIdKeyTable = $this->mIdKey;
if (!$this->mIdKeyMetaTable) $this->mIdKeyMetaTable = $this->mIdKey;
if (!$this->mNameKey) $this->mNameKey = $this->mType."_name";
if (!$this->mMetaId) $this->mMetaId = "meta_id";
if (!$this->mOrderBy) $this->mOrderBy = $this->mNameKey;
if (!$this->mOrderDir) $this->mOrderDir = "DESC";
//if (!$this->mHeader) $this->mHeader = false;
if (!$this->mTableName) {
$this->mTableName = $this->mTablePrefix.$this->mType;
// No meta table for default (i.e. auto-generated) table
Expand Down Expand Up @@ -822,8 +822,8 @@ protected function dbSearchList($linkId=null,$linkType=null,$groupId=null,$group
$groupType = Parameters::get("group_type"); // If "groupType" is specified, search only for groups of that type
if ($grouping === null)
$grouping = Parameters::get("grouping");
$grouping = $this->mType == "group"
? false
$grouping = $this->mType == "group"
? false
: $grouping && $grouping !== "false" && $grouping !== "0";
if ($simple === null)
$simple = Parameters::get("simple"); // In a "simple" list search we get only the id, name and parent_id
Expand Down

0 comments on commit b775399

Please sign in to comment.