Permalink
Browse files

additional checks for update post

  • Loading branch information...
1 parent 5d991ff commit 38e92242f9a7e9cc4e4ba446cef95862822b643c @jcleblanc jcleblanc committed Jul 17, 2009
Showing with 5 additions and 4 deletions.
  1. +5 −4 index.php
View
@@ -15,9 +15,10 @@
$yahoo_user = $session->getSessionedUser();
//create new update
-if ($title && $description && $link){
- $suid = $yahoo_user->guid . time();
- $yahoo_user->insertUpdate($suid, $title, $link, $description);
- echo "Update Successful";
+if ($title){
+ $suid = $yahoo_user->guid . time();
+ if ($yahoo_user->insertUpdate($suid, $title, $link, $description)){
+ echo "Update Successful";
+ }
}
?>

0 comments on commit 38e9224

Please sign in to comment.