cvs: php-master-web /manage event.php
| From: | jim winstead | Date: | Mon, 04 Mar 2002 04:23:49 +0000 |
| Subject: | cvs: php-master-web /manage event.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-8945@lists.php.net to get a copy of this message | ||
jimw Sun Mar 3 23:23:49 2002 EDT
Modified files:
/php-master-web/manage event.php
Log:
fix approve query
Index: php-master-web/manage/event.php
diff -u php-master-web/manage/event.php:1.1 php-master-web/manage/event.php:1.2
--- php-master-web/manage/event.php:1.1 Sun Mar 3 22:12:43 2002
+++ php-master-web/manage/event.php Sun Mar 3 23:23:48 2002
@@ -30,7 +30,7 @@
$id = (int)$id;
switch ($action) {
case 'approve':
- if (mysql_query("UPDATE phpcal SET approved=1,app_by=$user WHERE id=$id")
+ if (mysql_query("UPDATE phpcal SET approved=1,app_by='$user' WHERE id=$id")
&& mysql_affected_rows()) {
$event = fetch_event($id);
$message = "This event has been approved. It will appear on the PHP website
shortly.";