We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
majordomo/modules/objects/objects.class.php
Line 322 in c772b18
function loadObject($id) { $rec = SQLSelectOne("SELECT objects.*,classes.TITLE CL_TITLE FROM objects join classes ON objects.CLASS_ID = classes.ID WHERE objects.ID=" . (int)$id); if (IsSet($rec['ID'])) { $this->id = $rec['ID']; $this->object_title = $rec['TITLE']; $this->class_id = $rec['CLASS_ID']; $this->class_title = $rec['CL_TITLE']; $this->description = $rec['DESCRIPTION']; $this->location_id = $rec['LOCATION_ID']; if (preg_match('/^sdevice(.+?)/', $rec['SYSTEM'], $m)) { $this->device_id = $m[1]; } } else { return false; } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
majordomo/modules/objects/objects.class.php
Line 322 in c772b18
Основываясь на предположении, что объект ДОЛЖЕН принадлежать к какому-нибудь классу избавляемся от лишнего запроса
The text was updated successfully, but these errors were encountered: