         
         else
         {
-            return 1
+            return 0
         }
         
         return 1

class VAdminPurchases:UIView, UICollectionViewDelegate, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout
{
    private weak var controller:CAdminPurchases!
    private weak var spinner:VSpinner!
    private weak var collectionView:UICollectionView!
    private let kHeaderHeight:CGFloat = 70
    private let kInterLine:CGFloat = 1

    
    func completedLoading()
    {
        spinner?.removeFromSuperview()
        collectionView.reloadData()
    }
    
    func errorLoading()
    {
        spinner?.removeFromSuperview()
    }
    
    //MARK: collectionView delegate
