~dangarner/xibo/client-132

« back to all changes in this revision

Viewing changes to server/lib/service/xmdssoap.class.php

  • Committer: Dan Garner
  • Date: 2011-03-20 19:13:15 UTC
  • mfrom: (194.15.9 server-122)
  • Revision ID: dan@xibo.org.uk-20110320191315-fveqyjulozhmd5fc
Merged  lp:~dangarner/xibo/server-122

Show diffs side-by-side

added added

removed removed

Lines of Context:
883
883
        // Assume we are complete (but we are getting some)
884
884
        $mediaInventoryComplete = 1;
885
885
 
886
 
        foreach ($document->documentElement->childNodes as $node)
 
886
        $xpath = new DOMXPath($document);
 
887
        $fileNodes = $xpath->query("//file");
 
888
 
 
889
        foreach ($fileNodes as $node)
887
890
        {
888
 
            // Make sure we dont consider any text nodes
889
 
            if ($node->nodeType == XML_TEXT_NODE) continue;
890
 
 
891
891
            $mediaId = $node->getAttribute('id');
892
892
            $complete = $node->getAttribute('complete');
893
893
            $md5 = $node->getAttribute('md5');
894
894
            $lastChecked = $node->getAttribute('lastChecked');
895
895
 
896
 
            // Check the MD5?
 
896
            // TODO: Check the MD5?
897
897
 
898
898
            // If this item is a 0 then set not complete
899
899
            if ($complete == 0)