diff options
| author | fisharebest <fisharebest@gmail.com> | 2010-05-04 17:03:57 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2010-05-04 17:03:57 +0000 |
| commit | b756001bc5924416ed58fc8660a3e515fbdac19e (patch) | |
| tree | 4dbdbfd612761a1574594e9d84efbe06ecbf7fb7 /includes/functions | |
| parent | fd65a28ea776611fece5b536adf0042013f00a87 (diff) | |
| download | webtrees-b756001bc5924416ed58fc8660a3e515fbdac19e.tar.gz webtrees-b756001bc5924416ed58fc8660a3e515fbdac19e.tar.bz2 webtrees-b756001bc5924416ed58fc8660a3e515fbdac19e.zip | |
Fix: bug found in PGV
Diffstat (limited to 'includes/functions')
| -rw-r--r-- | includes/functions/functions_db.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/functions/functions_db.php b/includes/functions/functions_db.php index 460fb2ebf3..a5477e666a 100644 --- a/includes/functions/functions_db.php +++ b/includes/functions/functions_db.php @@ -686,7 +686,7 @@ function fetch_linked_obje($xref, $link, $ged_id) { " FROM {$TBLPREFIX}media". " JOIN {$TBLPREFIX}link ON (m_gedfile=l_file AND m_media=l_from)". " LEFT JOIN {$TBLPREFIX}name ON (m_gedfile=n_file AND m_media=n_id AND n_num=0)". - " WHERE m_gedfile=? AND l_type=? AND l_to=? AND n_num=?". + " WHERE m_gedfile=? AND l_type=? AND l_to=?". " ORDER BY n_sort" )->execute(array($ged_id, $link, $xref))->fetchAll(PDO::FETCH_ASSOC); |
