r6168 - branches/bmas-staging/lib/org/freemedsoftware/core

1 view
Skip to first unread message

subve...@svn.freemedsoftware.org

unread,
Oct 25, 2011, 2:54:29 PM10/25/11
to freemed-d...@googlegroups.com
Author: jeff
Date: 2011-10-25 14:54:29 -0400 (Tue, 25 Oct 2011)
New Revision: 6168

Modified:
branches/bmas-staging/lib/org/freemedsoftware/core/PatientDataStore.class.php
Log:
Fix GetFile().


Modified: branches/bmas-staging/lib/org/freemedsoftware/core/PatientDataStore.class.php
===================================================================
--- branches/bmas-staging/lib/org/freemedsoftware/core/PatientDataStore.class.php 2011-10-25 18:49:35 UTC (rev 6167)
+++ branches/bmas-staging/lib/org/freemedsoftware/core/PatientDataStore.class.php 2011-10-25 18:54:29 UTC (rev 6168)
@@ -79,7 +79,7 @@
// Serves file back to browser with appropriate headers.
//
public function GetFile ( $patient, $module, $id ) {
- $query = "SELECT content FROM pds WHERE patient = ".$GLOBALS['sql']->quote( $patient )." AND module = ".$GLOBALS['sql']->quote( strtolower( $module ) )." AND id = ".$GLOBALS['sql']->quote( $id );
+ $query = "SELECT contents FROM pds WHERE patient = ".$GLOBALS['sql']->quote( $patient )." AND module = ".$GLOBALS['sql']->quote( strtolower( $module ) )." AND id = ".$GLOBALS['sql']->quote( $id );
$r = $GLOBALS['sql']->queryOne( $query );

if ( ! $r ) {

Reply all
Reply to author
Forward
0 new messages