diff options
| author | fisharebest <fisharebest@gmail.com> | 2013-06-23 16:07:51 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2013-06-23 16:07:51 +0000 |
| commit | 287e5d28b8a5a876a1fecd0a04eff6d448fc0fd0 (patch) | |
| tree | c945e0d4ee3f6f38222fd0aa922fcd9f735a0fb6 /library | |
| parent | a5aee6744cc06b176b787feee55e8a8c0c12ccb7 (diff) | |
| download | webtrees-287e5d28b8a5a876a1fecd0a04eff6d448fc0fd0.tar.gz webtrees-287e5d28b8a5a876a1fecd0a04eff6d448fc0fd0.tar.bz2 webtrees-287e5d28b8a5a876a1fecd0a04eff6d448fc0fd0.zip | |
Remove special code for PHP5.2
Diffstat (limited to 'library')
| -rw-r--r-- | library/WT/GedcomRecord.php | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/library/WT/GedcomRecord.php b/library/WT/GedcomRecord.php index 80f9e40816..5b2bb76d6c 100644 --- a/library/WT/GedcomRecord.php +++ b/library/WT/GedcomRecord.php @@ -90,14 +90,7 @@ class WT_GedcomRecord { // Look for the record in the database if (!is_array($data)) { - if (version_compare(PHP_VERSION, '5.3', '>')) { - // PHP 5.3 supports late static binding, but the syntax breaks PHP 5.2, - // so wrap it in eval() to hide it from PHP 5.2 - eval('$data=static::fetchGedcomRecord($pid, $ged_id);'); - } else { - // PHP 5.2 does not - use a (slower) fallback. - $data=self::fetchGedcomRecord($pid, $ged_id); - } + $data=static::fetchGedcomRecord($pid, $ged_id); // If we can edit, then we also need to be able to see pending records. // Otherwise relationship privacy rules will not allow us to see |
