phpBMS

Changeset 747 for trunk

Show
Ignore:
Timestamp:
01/12/10 00:48:18 (2 years ago)
Author:
brieb
Message:
  • updating workload items not working - notes uuid was not being sent (id was)
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/phpbms/modules/base/widgets/workload/ajax.php

    r703 r747  
    5050        case "updateTask": 
    5151 
    52             $thetable = new notes($db,12); 
    53             $thereturn = $thetable->updateTask((int) $_GET["id"],(int) $_GET["cp"], mysql_real_escape_string($_GET["ty"])); 
     52            if(!isset($_GET["id"]) || !isset($_GET["cp"]) || !isset($_GET["ty"])) 
     53                $error = new appError(200, "passed parameters not set"); 
     54 
     55            $thetable = new notes($db, 'tbld:a4cdd991-cf0a-916f-1240-49428ea1bdd1'); 
     56            $thereturn = $thetable->updateTask((int) $_GET["id"], (int) $_GET["cp"], mysql_real_escape_string($_GET["ty"])); 
    5457            break; 
    5558 
phpBMS vulnerability assesment provided by Orvant Inc. Copyright © 2010 Kreotek, LLC. All Rights reserved.