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 ) {