Merge branch 'devel' of dev.sourcefabric.org:airtime into devel
This commit is contained in:
commit
b16fa16042
2 changed files with 9 additions and 3 deletions
|
@ -77,8 +77,9 @@ class Application_Form_SoundcloudPreferences extends Zend_Form_SubForm
|
||||||
// which is something we don't want
|
// which is something we don't want
|
||||||
'allowEmpty' => false,
|
'allowEmpty' => false,
|
||||||
'validators' => array(
|
'validators' => array(
|
||||||
new PasswordNotEmpty(array('UploadToSoundcloudOption'=>'1'))
|
new ConditionalNotEmpty(array('UploadToSoundcloudOption'=>'1'))
|
||||||
)
|
),
|
||||||
|
'renderPassword' => true
|
||||||
));
|
));
|
||||||
|
|
||||||
// Add the description element
|
// Add the description element
|
||||||
|
|
|
@ -1578,7 +1578,8 @@ class Application_Model_Show {
|
||||||
." FROM $CC_CONFIG[showInstances] si, $CC_CONFIG[showTable] s"
|
." FROM $CC_CONFIG[showInstances] si, $CC_CONFIG[showTable] s"
|
||||||
." WHERE si.show_id = s.id"
|
." WHERE si.show_id = s.id"
|
||||||
." AND si.starts <= TIMESTAMP '$timeNow'"
|
." AND si.starts <= TIMESTAMP '$timeNow'"
|
||||||
." AND si.ends > TIMESTAMP '$timeNow'";
|
." AND si.ends > TIMESTAMP '$timeNow'"
|
||||||
|
." AND modified_instance != TRUE";
|
||||||
|
|
||||||
// Convert back to local timezone
|
// Convert back to local timezone
|
||||||
$rows = $CC_DBC->GetAll($sql);
|
$rows = $CC_DBC->GetAll($sql);
|
||||||
|
@ -1616,6 +1617,7 @@ class Application_Model_Show {
|
||||||
." WHERE si.show_id = s.id"
|
." WHERE si.show_id = s.id"
|
||||||
." AND si.starts >= TIMESTAMP '$timeStart'"
|
." AND si.starts >= TIMESTAMP '$timeStart'"
|
||||||
." AND si.starts < TIMESTAMP $timeEnd"
|
." AND si.starts < TIMESTAMP $timeEnd"
|
||||||
|
." AND modified_instance != TRUE"
|
||||||
." ORDER BY si.starts";
|
." ORDER BY si.starts";
|
||||||
|
|
||||||
// defaults to retrieve all shows within the interval if $limit not set
|
// defaults to retrieve all shows within the interval if $limit not set
|
||||||
|
@ -1638,6 +1640,9 @@ class Application_Model_Show {
|
||||||
public static function ConvertToLocalTimeZone(&$rows, $columnsToConvert) {
|
public static function ConvertToLocalTimeZone(&$rows, $columnsToConvert) {
|
||||||
$timezone = date_default_timezone_get();
|
$timezone = date_default_timezone_get();
|
||||||
|
|
||||||
|
if (!is_array($rows)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
foreach($rows as &$row) {
|
foreach($rows as &$row) {
|
||||||
foreach($columnsToConvert as $column) {
|
foreach($columnsToConvert as $column) {
|
||||||
$row[$column] = Application_Model_DateHelper::ConvertToLocalDateTimeString($row[$column]);
|
$row[$column] = Application_Model_DateHelper::ConvertToLocalDateTimeString($row[$column]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue