џџџџџџџџpгіЇ˜гіЇРтіЇРгіЇџџџџџџџџ@ЙеЇџџџџ`ЙеЇ€ЙеЇЄч€ ЙеЇЖа€џџџџcюшц€шгіЇџџџџџџџџ фіЇˆдіЇАдіЇџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџр.ХЇџџџџЖ€`ИеЇ ЙеЇџџџџЖ€ЙеЇеіЇџџџџcюшц€идіЇџџџџџџџџ@фіЇ`фіЇџџџџџџџџ фіЇPеіЇџџџџџџџџ€ИеЇџџџџ ИеЇРИеЇЄч€рИеЇЖа€џџџџcюшц€xеіЇџџџџџџџџРфіЇрфіЇџџџџџџџџ№еіЇ хіЇжіЇџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџ0†еЇџџџџD2=1€@ИеЇ8.ХЇџџџџ+лz8Я€|ўЇ-ХЇџџџџЃBЅQ„GuР0|ўЇ2џџџџхaвuЕа€РЙеЇ2џџџџцaвuЕа€рЙеЇ КеЇ–'_1€КеЇ`КеЇЃ–|€@КеЇш,ХЇЕЋˆ €€КеЇџџџџџџџџ`хіЇ€хіЇџџџџџџџџРхіЇИжіЇрхіЇржіЇџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџ as array * @return array */ public static function findAll() { $objCollection = CustomElementModel::findAll(); if($objCollection === null) { return array(); } $arrReturn = array(); foreach($objCollection as $objModel) { $arrReturn[] = static::create( $objModel ); // add to cache Cache::addCustomElement($objModel->id,$objReturn); Cache::addCustomElement($objModel->alias,$objReturn); } return $arrReturn; } /** * Return true if the custom element has been changed by a user e.g. after saving * @param integer Timestamp * @param string * @return boolean */ public static function hasChangedByTimestamp($intTstamp,$strAlias='') { if(strlen($strAlias) < 1) { if(\Contao\Input::get('act') != 'edit') { return false; } $objActiveRecord = null; $strTable = \Contao\Input::get('table'); $strModel = \Contao\Model::getClassFromTable($strTable); if(class_exists($strModel)) { $objActiveRecord = $strModel::findByPk(\Contao\Input::get('id')); } if($objActiveRecord === null) { $objActiveRecord = \Contao\Database::getInstance()->prepare("SELECT * FROM ".$strTable." WHERE id=?")->limit(1)->execute(\Contao\Input::get('id')); } // get the selection field for the current table $selectionfield = CustomElements::getSelectionField($strTable); // check if it is a custom element we are in if(!static::isCustomElement($objActiveRecord->{$selectionfield},$strTable)) { return false; } $strAlias = $objActiveRecord->{$selectionfield}; } $objResult = \PCT\CustomElements\Models\CustomElementModel::findByAlias($strAlias); return ($objResult->tstamp != $intTstamp ? true : false); } /** * Return true if the name/alias is a custom element * @param string * @param string * @return boolean */ public static function isCustomElement($strAlias) { return (\PCT\CustomElements\Models\CustomElementModel::findByAlias($strAlias) !== null ? true : false); } } An Error Occurred: Internal Server Error

Oops! An Error Occurred

The server returned a "500 Internal Server Error".

Something is broken. Please let us know what you were doing when this error occurred. We will fix it as soon as possible. Sorry for any inconvenience caused.