mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-15 05:53:13 +00:00
Add curly braces
This commit is contained in:
@@ -255,10 +255,11 @@ class record_exportElement extends record_adapter
|
||||
*/
|
||||
public function get_size($name = false)
|
||||
{
|
||||
if ($name)
|
||||
if ($name) {
|
||||
return $this->size[$name];
|
||||
else
|
||||
} else {
|
||||
return $this->size;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -196,8 +196,9 @@ class record_preview extends record_adapter
|
||||
|
||||
public function get_train($pos = 0, $query = '', searchEngine_adapter $search_engine = null)
|
||||
{
|
||||
if ($this->train)
|
||||
if ($this->train) {
|
||||
return $this->train;
|
||||
}
|
||||
|
||||
switch ($this->env) {
|
||||
case 'RESULT':
|
||||
@@ -257,8 +258,9 @@ class record_preview extends record_adapter
|
||||
*/
|
||||
public function get_title($highlight = '', searchEngine_adapter $search_engine = null)
|
||||
{
|
||||
if ($this->title)
|
||||
if ($this->title) {
|
||||
return $this->title;
|
||||
}
|
||||
|
||||
$this->title = collection::getLogo($this->get_base_id()) . ' ';
|
||||
|
||||
|
Reference in New Issue
Block a user