summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Suhren <suhren.stefan@fh-swf.de>2015-05-18 13:03:07 +0200
committerStefan Suhren <suhren.stefan@fh-swf.de>2015-05-18 13:03:07 +0200
commit0d242ad6d8e394850c85167c069afce74e474ac5 (patch)
tree1521ef30be303017262692d9f7d0c0988a27bf8b
parent3ef8e663013183aea1e840d92a609c31abb5ca17 (diff)
downloadCatalog-0d242ad6d8e394850c85167c069afce74e474ac5.tar.gz
Catalog-0d242ad6d8e394850c85167c069afce74e474ac5.zip
Get rid of an unset id that is assigned to add
-rw-r--r--categories.php2
-rw-r--r--products.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/categories.php b/categories.php
index 651eb58..0425ec1 100644
--- a/categories.php
+++ b/categories.php
@@ -51,7 +51,7 @@ else
echo "<td></td>";
echo "<td></td>";
echo "<td></td>";
- echo "<td><a href=\"categoryedit.php?add={$category->getId()}\">Add</a></td>";
+ echo "<td><a href=\"categoryedit.php?add\">Add</a></td>";
echo "</tr>";
}
?>
diff --git a/products.php b/products.php
index 9f4f6b0..6e4d2bd 100644
--- a/products.php
+++ b/products.php
@@ -65,7 +65,7 @@ if(isset($username))
echo "<td></td>";
echo "<td></td>";
echo "<td></td>";
- echo "<td><a href=\"productedit.php?add={$category->getId()}&catid={$id}\">Add</a></td>";
+ echo "<td><a href=\"productedit.php?add&catid={$id}\">Add</a></td>";
echo "</tr>";
}
?>