diff --git a/index.php b/index.php index 5a81705..113b9b5 100644 --- a/index.php +++ b/index.php @@ -55,7 +55,7 @@ // Write polygon coordinates into array while($row = $rc->fetch(PDO::FETCH_ASSOC)) { - if(!isset($polystore[$row['polyid'])) { + if(!isset($polystore[$row['polyid']])) { debug('Database inconsistent: No polyhood defined for ID '.$row['polyid']); continue; // Skip those orphaned vertex entries }