Diff between c220bb2e36f75f90775a3a85d7a687dde7f73278 and 79c1f7cadd95deb8f1a521cfd36a5f0713a040f1
Changed Files
| File | Additions | Deletions | Status |
| index.php | +1 | -1 | modified |
Full Patch
diff --git a/index.php b/index.php
index 6f78ec2..564e0c0 100755
--- a/index.php
+++ b/index.php
@@ -56,7 +56,7 @@ if ($result->num_rows>0){
<?php foreach ($henkilot as $tyyppi): ?>
<tr>
<?php // Renderöi taulukko tyypin tiedoilla
- if ($tyyppi['id'] === $_GET['id']) // Jos tyyppi on muokattavissa
+ if (isset($_GET['id']) and $tyyppi['id'] === $_GET['id']) // Jos tyyppi on muokattavissa
{
// Muuttaa normaalin tr rivin tableksi
echo "<form action='muokkaa.php' method='POST'>";