diff -urw dam.orig/lib/class.tx_dam_db.php dam/lib/class.tx_dam_db.php --- dam.orig/lib/class.tx_dam_db.php 2006-05-15 21:42:08.000000000 +0200 +++ dam/lib/class.tx_dam_db.php 2006-05-15 21:51:08.000000000 +0200 @@ -741,7 +741,7 @@ static $pid = 0; if(!$pid AND is_object($GLOBALS['TYPO3_DB'])) { - $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('uid', 'pages', 'doktype=2 and module="dam" AND deleted=0'); + $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('uid', 'pages', 'doktype=2 and module='.$GLOBALS['TYPO3_DB']->fullQuoteStr('dam', 'pages').' AND deleted=0'); if ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) { $pid = $row['uid']; } else { diff -urw dam.orig/lib/class.tx_dam_sysfolder.php dam/lib/class.tx_dam_sysfolder.php --- dam.orig/lib/class.tx_dam_sysfolder.php 2006-05-15 21:42:08.000000000 +0200 +++ dam/lib/class.tx_dam_sysfolder.php 2006-05-15 21:51:06.000000000 +0200 @@ -85,7 +85,7 @@ */ function getAvailable() { $rows=array(); - if ($damFolders = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows('uid,pid,title', 'pages', 'doktype=2 and module="dam" AND deleted=0', '', '', '', 'uid')) { + if ($damFolders = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows('uid,pid,title', 'pages', 'doktype=2 and module='.$GLOBALS['TYPO3_DB']->fullQuoteStr('dam', 'pages').' AND deleted=0', '', '', '', 'uid')) { $rows = $damFolders; } return $rows;