diff options
| author | Greg Roach <fisharebest@gmail.com> | 2016-12-23 21:15:42 +0000 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2016-12-23 21:15:42 +0000 |
| commit | 13abd6f3a37322f885d85df150e105d27ad81f8d (patch) | |
| tree | f023015b458c95273afe5876246adf141de169ca /app/Note.php | |
| parent | 2c55bacfbfed3c49d3f2ac181fb519d24ffe2803 (diff) | |
| download | webtrees-13abd6f3a37322f885d85df150e105d27ad81f8d.tar.gz webtrees-13abd6f3a37322f885d85df150e105d27ad81f8d.tar.bz2 webtrees-13abd6f3a37322f885d85df150e105d27ad81f8d.zip | |
Code style - short array syntax
Diffstat (limited to 'app/Note.php')
| -rw-r--r-- | app/Note.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/Note.php b/app/Note.php index 95bd3a9b8b..9746820c14 100644 --- a/app/Note.php +++ b/app/Note.php @@ -46,9 +46,9 @@ class Note extends GedcomRecord { // Hide notes if they are attached to private records $linked_ids = Database::prepare( "SELECT l_from FROM `##link` WHERE l_to=? AND l_file=?" - )->execute(array( + )->execute([ $this->xref, $this->tree->getTreeId(), - ))->fetchOneColumn(); + ])->fetchOneColumn(); foreach ($linked_ids as $linked_id) { $linked_record = GedcomRecord::getInstance($linked_id, $this->tree); if ($linked_record && !$linked_record->canShow($access_level)) { @@ -82,10 +82,10 @@ class Note extends GedcomRecord { protected static function fetchGedcomRecord($xref, $tree_id) { return Database::prepare( "SELECT o_gedcom FROM `##other` WHERE o_id = :xref AND o_file = :tree_id AND o_type = 'NOTE'" - )->execute(array( + )->execute([ 'xref' => $xref, 'tree_id' => $tree_id, - ))->fetchOne(); + ])->fetchOne(); } /** |
