Subversion Repositories oidplus

Compare Revisions

Regard whitespace Rev 979 → Rev 978

/trunk/includes/classes/OIDplusObject.class.php
372,7 → 372,7
 
// Get parent gives the next possible parent which is EXISTING in OIDplus
// It does not give the immediate parent
public function getParent()/*: ?OIDplusObject*/ {
public function getParent() {
if (!OIDplus::baseConfig()->getValue('OBJECT_CACHING', true)) {
$res = OIDplus::db()->query("select parent from ###objects where id = ?", array($this->nodeId()));
if (!$res->any()) return null;
400,9 → 400,10
$cur = $cur->one_up();
if (!$cur) return null;
} while ($prev != $cur);
}
 
return null;
}
}
 
public function getRaMail() {
if (!OIDplus::baseConfig()->getValue('OBJECT_CACHING', true)) {