Merge branch 'saas-dev' into saas-landing-page
This commit is contained in:
commit
ca8ca0abed
|
@ -144,14 +144,27 @@ class UserController extends Zend_Controller_Action
|
||||||
// We don't allow 6 x's as a password.
|
// We don't allow 6 x's as a password.
|
||||||
// The reason is because we use that as a password placeholder
|
// The reason is because we use that as a password placeholder
|
||||||
// on the client side.
|
// on the client side.
|
||||||
if (($formData['cu_password'] != "xxxxxx") &&
|
if (array_key_exists('cu_password', $formData) && ($formData['cu_password'] != "xxxxxx") &&
|
||||||
(!empty($formData['cu_password']))) {
|
(!empty($formData['cu_password']))) {
|
||||||
$user->setPassword($formData['cu_password']);
|
$user->setPassword($formData['cu_password']);
|
||||||
}
|
}
|
||||||
$user->setEmail($formData['cu_email']);
|
|
||||||
$user->setCellPhone($formData['cu_cell_phone']);
|
if (array_key_exists('cu_email', $formData)) {
|
||||||
$user->setSkype($formData['cu_skype']);
|
$user->setEmail($formData['cu_email']);
|
||||||
$user->setJabber($formData['cu_jabber']);
|
}
|
||||||
|
|
||||||
|
if (array_key_exists('cu_cell_phone', $formData)) {
|
||||||
|
$user->setCellPhone($formData['cu_cell_phone']);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (array_key_exists('cu_skype', $formData)) {
|
||||||
|
$user->setSkype($formData['cu_skype']);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (array_key_exists('cu_jabber', $formData)) {
|
||||||
|
$user->setJabber($formData['cu_jabber']);
|
||||||
|
}
|
||||||
|
|
||||||
$user->save();
|
$user->save();
|
||||||
|
|
||||||
Application_Model_Preference::SetUserLocale($formData['cu_locale']);
|
Application_Model_Preference::SetUserLocale($formData['cu_locale']);
|
||||||
|
|
|
@ -1157,13 +1157,13 @@ WHERE si.show_id = s.id
|
||||||
AND si.starts >= :timeNow::timestamp - INTERVAL '2 days'
|
AND si.starts >= :timeNow::timestamp - INTERVAL '2 days'
|
||||||
AND si.starts < :timeEnd::timestamp
|
AND si.starts < :timeEnd::timestamp
|
||||||
AND modified_instance != TRUE
|
AND modified_instance != TRUE
|
||||||
ORDER BY
|
ORDER BY
|
||||||
CASE
|
CASE
|
||||||
WHEN si.ends > :timeNow::timestamp
|
WHEN si.ends > :timeNow::timestamp
|
||||||
AND si.starts < :timeNow::timestamp THEN 1
|
AND si.starts < :timeNow::timestamp THEN 1
|
||||||
WHEN si.starts > :timeNow::timestamp THEN 2
|
WHEN si.starts > :timeNow::timestamp THEN 2
|
||||||
ELSE 3
|
ELSE 3
|
||||||
END
|
END, si.starts
|
||||||
LIMIT :lim
|
LIMIT :lim
|
||||||
SQL;
|
SQL;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue