Fixed WHERE user_id = ... not specified in user CP blog settings save
authorDan
Tue, 15 Jul 2008 11:38:12 -0400
changeset 11 059a5a8566fc
parent 10 219a0133622e
child 12 f0ddbf48c978
Fixed WHERE user_id = ... not specified in user CP blog settings save
plugins/nuggie/usercp.php
--- a/plugins/nuggie/usercp.php	Mon Jul 07 04:02:18 2008 -0400
+++ b/plugins/nuggie/usercp.php	Tue Jul 15 11:38:12 2008 -0400
@@ -132,7 +132,7 @@
             
             if ( $initted )
             {
-              $sql = 'UPDATE ' . table_prefix . "blogs SET blog_name = '$blog_name', blog_subtitle = '$blog_desc', blog_type = '$blog_access', allowed_users = $allowed_users;";
+              $sql = 'UPDATE ' . table_prefix . "blogs SET blog_name = '$blog_name', blog_subtitle = '$blog_desc', blog_type = '$blog_access', allowed_users = $allowed_users WHERE user_id = {$session->user_id};";
             }
             else
             {