Visit BoonEx Page at Facebook

Facebook

Join BoonEx group at LinkedIn

LinkedIn

Follow BoonEx on Twitter

Twitter

Subscribe to BoonEx Blog RSS feed

RSS

Changeset 13132

Show
Ignore:
Timestamp:
11/03/09 02:06:03 (3 weeks ago)
Author:
Leonid Sokushev
Message:

ticket #1403 - changed checking for existing default album

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/modules/boonex/files/classes/BxFilesPageAlbumsMy.php

    r13050 r13132  
    107107        ); 
    108108        $sCaption = str_replace('{nickname}', getNickName($this->iOwnerId), $this->oConfig->getGlParam('profile_album_name')); 
    109         $aList = $this->oAlbum->getAlbumList(array('owner' => $this->iOwnerId, 'caption' => $sCaption, 'show_empty' => true), 0, 0, true); 
    110         if (empty($aList)) { 
     109        $aOwnerDefAlbumInfo = $this->oAlbum->getAlbumInfo(array('fileUri'=>uriFilter($sCaption), 'owner'=>$this->iOwnerId)); 
     110        if (!is_array($aOwnerDefAlbumInfo) || empty($aOwnerDefAlbumInfo)) { 
    111111            $aData = array( 
    112112                'caption' => $sCaption, 
  • trunk/modules/boonex/photos/classes/BxPhotosPageAlbumsMy.php

    r13050 r13132  
    107107        ); 
    108108        $sCaption = str_replace('{nickname}', getNickName($this->iOwnerId), $this->oConfig->getGlParam('profile_album_name')); 
    109         $aList = $this->oAlbum->getAlbumList(array('owner' => $this->iOwnerId, 'caption' => $sCaption, 'show_empty' => true), 0, 0, true); 
    110         if (empty($aList)) { 
     109        $aOwnerDefAlbumInfo = $this->oAlbum->getAlbumInfo(array('fileUri'=>uriFilter($sCaption), 'owner'=>$this->iOwnerId)); 
     110        if (!is_array($aOwnerDefAlbumInfo) || empty($aOwnerDefAlbumInfo)) { 
    111111            $aData = array( 
    112112                'caption' => $sCaption, 
  • trunk/modules/boonex/sounds/classes/BxSoundsPageAlbumsMy.php

    r13050 r13132  
    112112        ); 
    113113                $sCaption = str_replace('{nickname}', getNickName($this->iOwnerId), $this->oConfig->getGlParam('profile_album_name')); 
    114         $aList = $this->oAlbum->getAlbumList(array('owner' => $this->iOwnerId, 'caption' => $sCaption, 'show_empty' => true), 0, 0, true); 
    115         if (empty($aList)) { 
     114        $aOwnerDefAlbumInfo = $this->oAlbum->getAlbumInfo(array('fileUri'=>uriFilter($sCaption), 'owner'=>$this->iOwnerId)); 
     115        if (!is_array($aOwnerDefAlbumInfo) || empty($aOwnerDefAlbumInfo)) { 
    116116            $aData = array( 
    117117                'caption' => $sCaption, 
  • trunk/modules/boonex/videos/classes/BxVideosPageAlbumsMy.php

    r13050 r13132  
    112112        ); 
    113113        $sCaption = str_replace('{nickname}', getNickName($this->iOwnerId), $this->oConfig->getGlParam('profile_album_name')); 
    114         $aList = $this->oAlbum->getAlbumList(array('owner' => $this->iOwnerId, 'caption' => $sCaption, 'show_empty' => true), 0, 0, true); 
    115         if (empty($aList)) { 
     114        $aOwnerDefAlbumInfo = $this->oAlbum->getAlbumInfo(array('fileUri'=>uriFilter($sCaption), 'owner'=>$this->iOwnerId)); 
     115        if (!is_array($aOwnerDefAlbumInfo) || empty($aOwnerDefAlbumInfo)) { 
    116116            $aData = array( 
    117117                'caption' => $sCaption,