diff php/read/updateLink.php @ 29:f024f2f08994

a few more undef var fixes
author Robert Boland <robert@markup.co.uk>
date Fri, 04 Jan 2019 08:49:25 -0500
parents 84a412b8122c
children a67bf725e87b
line wrap: on
line diff
--- a/php/read/updateLink.php	Fri Jan 04 08:48:00 2019 -0500
+++ b/php/read/updateLink.php	Fri Jan 04 08:49:25 2019 -0500
@@ -7,7 +7,9 @@
 $dir = strval($_GET['dir']);
 echo $dir;
 $userID="";
-$userID = strval($_GET['userID']);
+if (isset($_GET['userID'])) {
+    $userID = strval($_GET['userID']);
+  }
 echo $userID;
 
 include "../../../private/db.php";