Changeset 1842
- Timestamp:
- 12/15/09 15:46:52 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpgwapi/inc/class.vfs_sql.inc.php
r1830 r1842 1259 1259 'checksubdirs' => False, 1260 1260 'mime_type' => False, 1261 'summary' => True, 1261 1262 'nofiles' => True 1262 1263 ) … … 1275 1276 $GLOBALS['phpgw']->db->db_addslashes($t->fake_leading_dirs_clean)."' AND name='". 1276 1277 $GLOBALS['phpgw']->db->db_addslashes($t->fake_name_clean)."'" . $this->extra_sql (VFS_SQL_UPDATE), __LINE__, __FILE__); 1277 1278 1278 1279 $set_attributes_array = array ( 1279 1280 'createdby_id' => $account_id, … … 1334 1335 ) 1335 1336 ); 1337 if (!(strpos(strtoupper($record['mime_type']),'IMAGE') === FALSE)) 1338 { 1339 $this->set_summary(array( 1340 'string'=> $data['to'], 1341 'relatives' => array ($data['relatives'][1]), 1342 'summary'=> $record['summary'] 1343 )); 1344 unset($record['summary']); 1345 } 1336 1346 } 1337 1347 $this->correct_attributes (array( … … 2011 2021 if ($GLOBALS['phpgw']->db->query($query) && $GLOBALS['phpgw']->db->next_record()){ 2012 2022 $val = $GLOBALS['phpgw']->db->row(); 2013 echo $val['summary']; 2014 2015 } 2016 else 2017 { 2018 echo $GLOBALS['phpgw']->db->error; 2019 return false; 2023 return $val['summary']; 2020 2024 } 2021 2025 } … … 2596 2600 ); 2597 2601 $dir = $p->fake_full_path; 2598 2602 if($data['summary']) 2603 $this->attributes['summary'] = 'summary'; 2599 2604 2600 2605 /* If they pass us a file or 'nofiles' is set, return the info for $dir only */ … … 2662 2667 $rarray[0]['symlink'] = @readlink($p->real_full_path); 2663 2668 } 2669 if($data['summary']) 2670 unset($this->attributes['summary']); 2664 2671 2665 2672 return $rarray;
Note: See TracChangeset
for help on using the changeset viewer.