diff --git a/application/models/ISO19115.php b/application/models/ISO19115.php index 00069607..b80f8370 100755 --- a/application/models/ISO19115.php +++ b/application/models/ISO19115.php @@ -228,9 +228,8 @@ class ISO19115 //M:N relation if ($this->datasetSeries) foreach($this->datasetSeries as $ds) { - $where=$db->quoteInto('name = ?',$ds['seriesName']); $sql="select id from series where name=?"; - $sth=$db->prepare($sql); + $sth=$db->prepare($sql); $sth->execute(array($ds['seriesName'])); $trow=$sth->fetch(); $trow=$seriestable->fetchRow($where);